summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2008-03-10 20:34:59 +0000
committervimboss <devnull@localhost>2008-03-10 20:34:59 +0000
commit74579744bededf160672469b0fc2935d7e26d7e3 (patch)
treedd562d554a6bc11a0d7c829688caad75989aa285
parent7aa4b0499ee0e2254c3a87f25f4a88cb628b2a58 (diff)
downloadvim-74579744bededf160672469b0fc2935d7e26d7e3.tar.gz
updated for version 7.1-270v7.1.270v7-1-270
-rw-r--r--src/ex_docmd.c6
-rw-r--r--src/search.c5
-rw-r--r--src/version.c2
3 files changed, 8 insertions, 5 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index d5692c27..193796f4 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3932,8 +3932,7 @@ get_address(ptr, skip, to_other_file)
curwin->w_cursor.col = 0;
searchcmdlen = 0;
if (!do_search(NULL, c, cmd, 1L,
- SEARCH_HIS + SEARCH_MSG + SEARCH_START,
- NULL))
+ SEARCH_HIS | SEARCH_MSG, NULL))
{
curwin->w_cursor = pos;
cmd = NULL;
@@ -3980,8 +3979,7 @@ get_address(ptr, skip, to_other_file)
pos.col = 0;
if (searchit(curwin, curbuf, &pos,
*cmd == '?' ? BACKWARD : FORWARD,
- (char_u *)"", 1L,
- SEARCH_MSG + SEARCH_START,
+ (char_u *)"", 1L, SEARCH_MSG,
i, (linenr_T)0, NULL) != FAIL)
lnum = pos.lnum;
else
diff --git a/src/search.c b/src/search.c
index 9bdd0379..ff952d74 100644
--- a/src/search.c
+++ b/src/search.c
@@ -538,7 +538,10 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
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;
#ifdef FEAT_MBYTE
/* Watch out for the "col" being MAXCOL - 2, used in a closed fold. */
diff --git a/src/version.c b/src/version.c
index 654c5d99..bc906d45 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 270,
+/**/
269,
/**/
268,