forked from aniani/vim
updated for version 7.1-270
This commit is contained in:
@@ -3932,8 +3932,7 @@ get_address(ptr, skip, to_other_file)
|
|||||||
curwin->w_cursor.col = 0;
|
curwin->w_cursor.col = 0;
|
||||||
searchcmdlen = 0;
|
searchcmdlen = 0;
|
||||||
if (!do_search(NULL, c, cmd, 1L,
|
if (!do_search(NULL, c, cmd, 1L,
|
||||||
SEARCH_HIS + SEARCH_MSG + SEARCH_START,
|
SEARCH_HIS | SEARCH_MSG, NULL))
|
||||||
NULL))
|
|
||||||
{
|
{
|
||||||
curwin->w_cursor = pos;
|
curwin->w_cursor = pos;
|
||||||
cmd = NULL;
|
cmd = NULL;
|
||||||
@@ -3980,8 +3979,7 @@ get_address(ptr, skip, to_other_file)
|
|||||||
pos.col = 0;
|
pos.col = 0;
|
||||||
if (searchit(curwin, curbuf, &pos,
|
if (searchit(curwin, curbuf, &pos,
|
||||||
*cmd == '?' ? BACKWARD : FORWARD,
|
*cmd == '?' ? BACKWARD : FORWARD,
|
||||||
(char_u *)"", 1L,
|
(char_u *)"", 1L, SEARCH_MSG,
|
||||||
SEARCH_MSG + SEARCH_START,
|
|
||||||
i, (linenr_T)0, NULL) != FAIL)
|
i, (linenr_T)0, NULL) != FAIL)
|
||||||
lnum = pos.lnum;
|
lnum = pos.lnum;
|
||||||
else
|
else
|
||||||
|
@@ -538,7 +538,10 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options & SEARCH_START)
|
/* When not accepting a match at the start position set "extra_col" to a
|
||||||
|
* non-zero value. Don't do that when starting at MAXCOL, since MAXCOL +
|
||||||
|
* 1 is zero. */
|
||||||
|
if ((options & SEARCH_START) || pos->col == MAXCOL)
|
||||||
extra_col = 0;
|
extra_col = 0;
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
/* Watch out for the "col" being MAXCOL - 2, used in a closed fold. */
|
/* Watch out for the "col" being MAXCOL - 2, used in a closed fold. */
|
||||||
|
@@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
270,
|
||||||
/**/
|
/**/
|
||||||
269,
|
269,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user