1
0
forked from aniani/vim

updated for version 7.3.871

Problem:    search('^$', 'c') does not use the empty match under the cursor.
Solution:   Special handling of the 'c' flag. (Christian Brabandt)
            Add tests.
This commit is contained in:
Bram Moolenaar
2013-03-19 15:27:48 +01:00
parent af62ff3696
commit db333a5b8d
4 changed files with 24 additions and 0 deletions

View File

@@ -727,6 +727,8 @@ searchit(win, buf, pos, dir, pat, count, options, pat_use, stop_lnum, tm)
++matchcol;
}
}
if (options & SEARCH_START)
break;
if (ptr[matchcol] == NUL
|| (nmatched = vim_regexec_multi(&regmatch,
win, buf, lnum + matchpos.lnum,