Compare commits

...

7 Commits

Author SHA1 Message Date
Bjorn Winckler e5159c3b6a Snapshot 26 2008-04-11 22:54:48 +02:00
Bjorn Winckler b36829bcaa Add 'antialias' to list of non-standard options in help 2008-04-10 21:07:52 +02:00
Bjorn Winckler 07c344444b New MacVim icon 2008-04-10 20:57:46 +02:00
Bjorn Winckler bafcc3365d Merge upstream 2008-04-09 15:50:00 +02:00
vimboss 41ca0e5508 updated for version 7.1-293 2008-04-09 13:49:57 +00:00
vimboss 246dfc17f4 updated for version 7.1-292 2008-04-09 10:16:02 +00:00
Bjorn Winckler 9aae3ba3cc Fix initial window placement bug
The algorithm which determines the topmost window only searches through
visible windows.  The initial window placement bug was a result of this
algorithm returning the (invisible) window whose position was to be
determined.
2008-04-08 13:37:21 +02:00
9 changed files with 138 additions and 23 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ strings like "((3) of 2)" to appear in the window title.
*macvim-options*
These are the non-standard options that MacVim supports:
'fullscreen' 'fuoptions' 'toolbariconsize' 'transparency'
'fullscreen' 'fuoptions' 'toolbariconsize' 'transparency' 'antialias'
*macvim-find*
Whenever you search for something in Vim (e.g. using "/") the search query is
+1 -1
View File
@@ -545,7 +545,7 @@
<key>CFBundleSignature</key>
<string>VIMM</string>
<key>CFBundleVersion</key>
<string>25</string>
<string>26</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
+4 -3
View File
@@ -741,9 +741,10 @@ static int executeInLoginShell(NSString *path, NSArray *args);
- (MMVimController *)topmostVimController
{
NSArray *windows = [NSApp orderedWindows];
if ([windows count] > 0) {
NSWindow *window = [windows objectAtIndex:0];
// Find the topmost visible window which has an associated vim controller.
NSEnumerator *e = [[NSApp orderedWindows] objectEnumerator];
id window;
while ((window = [e nextObject]) && [window isVisible]) {
unsigned i, count = [vimControllers count];
for (i = 0; i < count; ++i) {
MMVimController *vc = [vimControllers objectAtIndex:i];
+3 -3
View File
@@ -698,7 +698,7 @@
i386,
);
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 25;
CURRENT_PROJECT_VERSION = 26;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)",
@@ -739,7 +739,7 @@
buildSettings = {
ARCHS = "$(NATIVE_ARCH)";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 25;
CURRENT_PROJECT_VERSION = 26;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)",
@@ -770,7 +770,7 @@
buildSettings = {
ARCHS = "$(NATIVE_ARCH)";
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 25;
CURRENT_PROJECT_VERSION = 26;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)",
+19
View File
@@ -40,6 +40,25 @@
Sparkle supports updates in zip, tar, tbz, tgz, or dmg format.
-->
<item>
<title>Snapshot 26 released</title>
<description><![CDATA[
<h1>MacVim snapshot 26 released</h1>
<p> This snapshot contains a fix to the bug which caused the first window to
open in the wrong position as well as an initial version of the new MacVim
icon. </p>
]]></description>
<pubDate>Fri, 11 Apr 2008 20:37 CET</pubDate>
<enclosure type="application/octet-stream"
url="http://macvim.googlecode.com/files/MacVim-snapshot-26.tbz"
length="8147362"
sparkle:version="26"
sparkle:shortVersionString="7.1"
/>
</item>
<item>
<title>Snapshot 25 released</title>
<description><![CDATA[
Binary file not shown.
+90 -12
View File
@@ -3039,6 +3039,15 @@ typedef struct
} se_u;
} save_se_T;
/* used for BEHIND and NOBEHIND matching */
typedef struct regbehind_S
{
regsave_T save_after;
regsave_T save_behind;
save_se_T save_start[NSUBEXP];
save_se_T save_end[NSUBEXP];
} regbehind_T;
static char_u *reg_getline __ARGS((linenr_T lnum));
static long vim_regexec_both __ARGS((char_u *line, colnr_T col, proftime_T *tm));
static long regtry __ARGS((regprog_T *prog, colnr_T col));
@@ -3046,6 +3055,8 @@ static void cleanup_subexpr __ARGS((void));
#ifdef FEAT_SYN_HL
static void cleanup_zsubexpr __ARGS((void));
#endif
static void save_subexpr __ARGS((regbehind_T *bp));
static void restore_subexpr __ARGS((regbehind_T *bp));
static void reg_nextline __ARGS((void));
static void reg_save __ARGS((regsave_T *save, garray_T *gap));
static void reg_restore __ARGS((regsave_T *save, garray_T *gap));
@@ -3166,19 +3177,12 @@ typedef struct regitem_S
save_se_T sesave;
regsave_T regsave;
} rs_un; /* room for saving reginput */
short rs_no; /* submatch nr */
short rs_no; /* submatch nr or BEHIND/NOBEHIND */
} regitem_T;
static regitem_T *regstack_push __ARGS((regstate_T state, char_u *scan));
static void regstack_pop __ARGS((char_u **scan));
/* used for BEHIND and NOBEHIND matching */
typedef struct regbehind_S
{
regsave_T save_after;
regsave_T save_behind;
} regbehind_T;
/* used for STAR, PLUS and BRACE_SIMPLE matching */
typedef struct regstar_S
{
@@ -4888,6 +4892,10 @@ regmatch(scan)
status = RA_FAIL;
else
{
/* Need to save the subexpr to be able to restore them
* when there is a match but we don't use it. */
save_subexpr(((regbehind_T *)rp) - 1);
rp->rs_no = op;
reg_save(&rp->rs_un.regsave, &backpos);
/* First try if what follows matches. If it does then we
@@ -5118,15 +5126,20 @@ regmatch(scan)
reg_restore(&(((regbehind_T *)rp) - 1)->save_after,
&backpos);
else
/* But we didn't want a match. */
{
/* But we didn't want a match. Need to restore the
* subexpr, because what follows matched, so they have
* been set. */
status = RA_NOMATCH;
restore_subexpr(((regbehind_T *)rp) - 1);
}
regstack_pop(&scan);
regstack.ga_len -= sizeof(regbehind_T);
}
else
{
/* No match: Go back one character. May go to previous
* line once. */
/* No match or a match that doesn't end where we want it: Go
* back one character. May go to previous line once. */
no = OK;
if (REG_MULTI)
{
@@ -5160,6 +5173,13 @@ regmatch(scan)
/* Advanced, prepare for finding match again. */
reg_restore(&rp->rs_un.regsave, &backpos);
scan = OPERAND(rp->rs_scan);
if (status == RA_MATCH)
{
/* We did match, so subexpr may have been changed,
* need to restore them for the next try. */
status = RA_NOMATCH;
restore_subexpr(((regbehind_T *)rp) - 1);
}
}
else
{
@@ -5172,7 +5192,16 @@ regmatch(scan)
status = RA_MATCH;
}
else
status = RA_NOMATCH;
{
/* We do want a proper match. Need to restore the
* subexpr if we had a match, because they may have
* been set. */
if (status == RA_MATCH)
{
status = RA_NOMATCH;
restore_subexpr(((regbehind_T *)rp) - 1);
}
}
regstack_pop(&scan);
regstack.ga_len -= sizeof(regbehind_T);
}
@@ -5819,6 +5848,55 @@ cleanup_zsubexpr()
}
#endif
/*
* Save the current subexpr to "bp", so that they can be restored
* later by restore_subexpr().
*/
static void
save_subexpr(bp)
regbehind_T *bp;
{
int i;
for (i = 0; i < NSUBEXP; ++i)
{
if (REG_MULTI)
{
bp->save_start[i].se_u.pos = reg_startpos[i];
bp->save_end[i].se_u.pos = reg_endpos[i];
}
else
{
bp->save_start[i].se_u.ptr = reg_startp[i];
bp->save_end[i].se_u.ptr = reg_endp[i];
}
}
}
/*
* Restore the subexpr from "bp".
*/
static void
restore_subexpr(bp)
regbehind_T *bp;
{
int i;
for (i = 0; i < NSUBEXP; ++i)
{
if (REG_MULTI)
{
reg_startpos[i] = bp->save_start[i].se_u.pos;
reg_endpos[i] = bp->save_end[i].se_u.pos;
}
else
{
reg_startp[i] = bp->save_start[i].se_u.ptr;
reg_endp[i] = bp->save_end[i].se_u.ptr;
}
}
}
/*
* Advance reglnum, regline and reginput to the next line.
*/
+16 -3
View File
@@ -753,6 +753,7 @@ static int set_spell_finish __ARGS((spelltab_T *new_st));
static int spell_iswordp __ARGS((char_u *p, buf_T *buf));
static int spell_iswordp_nmw __ARGS((char_u *p));
#ifdef FEAT_MBYTE
static int spell_mb_isword_class __ARGS((int cl));
static int spell_iswordp_w __ARGS((int *p, buf_T *buf));
#endif
static int write_spell_prefcond __ARGS((FILE *fd, garray_T *gap));
@@ -9789,7 +9790,7 @@ spell_iswordp(p, buf)
c = mb_ptr2char(s);
if (c > 255)
return mb_get_class(s) >= 2;
return spell_mb_isword_class(mb_get_class(s));
return spelltab.st_isw[c];
}
#endif
@@ -9812,7 +9813,7 @@ spell_iswordp_nmw(p)
{
c = mb_ptr2char(p);
if (c > 255)
return mb_get_class(p) >= 2;
return spell_mb_isword_class(mb_get_class(p));
return spelltab.st_isw[c];
}
#endif
@@ -9820,6 +9821,18 @@ spell_iswordp_nmw(p)
}
#ifdef FEAT_MBYTE
/*
* Return TRUE if word class indicates a word character.
* Only for characters above 255.
* Unicode subscript and superscript are not considered word characters.
*/
static int
spell_mb_isword_class(cl)
int cl;
{
return cl >= 2 && cl != 0x2070 && cl != 0x2080;
}
/*
* Return TRUE if "p" points to a word character.
* Wide version of spell_iswordp().
@@ -9841,7 +9854,7 @@ spell_iswordp_w(p, buf)
if (*s > 255)
{
if (enc_utf8)
return utf_class(*s) >= 2;
return spell_mb_isword_class(utf_class(*s));
if (enc_dbcs)
return dbcs_class((unsigned)*s >> 8, *s & 0xff) >= 2;
return 0;
+4
View File
@@ -681,6 +681,10 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
293,
/**/
292,
/**/
291,
/**/