Compare commits

...

5 Commits

Author SHA1 Message Date
Bram Moolenaar
78f6f7eb95 updated for version 7.1-026 2007-07-10 12:03:33 +00:00
Bram Moolenaar
7a42fa3cb7 updated for version 7.1-025 2007-07-10 11:28:55 +00:00
Bram Moolenaar
aec1179e5e updated for version 7.1-024 2007-07-10 11:09:36 +00:00
Bram Moolenaar
9a149791fc updated for version 7.1-023 2007-07-10 10:38:02 +00:00
Bram Moolenaar
bf44417987 updated for version 7.1-022 2007-07-07 11:58:28 +00:00
5 changed files with 25 additions and 5 deletions

View File

@@ -2349,8 +2349,10 @@ keymap_init()
if (*curbuf->b_p_keymap == NUL)
{
/* Stop any active keymap and clear the table. */
/* Stop any active keymap and clear the table. Also remove
* b:keymap_unload, as no keymap is active now. */
keymap_unload();
do_cmdline_cmd((char_u *)"unlet! b:keymap_name");
}
else
{
@@ -2500,7 +2502,6 @@ keymap_unload()
ga_clear(&curbuf->b_kmap_ga);
curbuf->b_kmap_state &= ~KEYMAP_LOADED;
do_cmdline_cmd((char_u *)"unlet! b:keymap_name");
#ifdef FEAT_WINDOWS
status_redraw_curbuf();
#endif

View File

@@ -13925,6 +13925,8 @@ search_cmn(argvars, match_pos, flagsp)
/* If 'n' flag is used: restore cursor position. */
if (flags & SP_NOMOVE)
curwin->w_cursor = save_cursor;
else
curwin->w_set_curswant = TRUE;
theend:
p_ws = save_p_ws;

View File

@@ -6379,7 +6379,7 @@ nv_brackets(cap)
*/
else if (cap->nchar == 'p' || cap->nchar == 'P')
{
if (!checkclearopq(cap->oap))
if (!checkclearop(cap->oap))
{
prep_redo_cmd(cap);
do_put(cap->oap->regname,

View File

@@ -573,8 +573,12 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum)
/*
* Start searching in current line, unless searching backwards and
* we're in column 0.
* If we are searching backwards, in column 0, and not including the
* current position, gain some efficiency by skipping back a line.
* Otherwise begin the search in the current line.
*/
if (dir == BACKWARD && start_pos.col == 0)
if (dir == BACKWARD && start_pos.col == 0
&& (options & SEARCH_START) == 0)
{
lnum = pos->lnum - 1;
at_first_line = FALSE;
@@ -2124,6 +2128,9 @@ findmatchlimit(oap, initc, flags, maxtravel)
else if (!backwards)
inquote = TRUE;
}
/* ml_get() only keeps one line, need to get linep again */
linep = ml_get(pos.lnum);
}
}
}
@@ -2795,7 +2802,7 @@ fwd_word(count, bigword, eol)
i = inc_cursor();
if (i == -1 || (i >= 1 && last_line)) /* started at last char in file */
return FAIL;
if (i == 1 && eol && count == 0) /* started at last char in line */
if (i >= 1 && eol && count == 0) /* started at last char in line */
return OK;
/*

View File

@@ -666,6 +666,16 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
26,
/**/
25,
/**/
24,
/**/
23,
/**/
22,
/**/
21,
/**/