diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-03-10 20:34:59 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-03-10 20:34:59 +0000 |
commit | aad8664d070532790e127028e0fc772a1ae6b30e (patch) | |
tree | dd562d554a6bc11a0d7c829688caad75989aa285 /src/search.c | |
parent | f2b2e70b3b58a9549fa38b6323459e9063bb6f03 (diff) | |
download | vim-git-aad8664d070532790e127028e0fc772a1ae6b30e.tar.gz |
updated for version 7.1-270v7.1.270
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index 9bdd03796..ff952d745 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. */ |