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:
@@ -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(®match,
|
||||
win, buf, lnum + matchpos.lnum,
|
||||
|
Reference in New Issue
Block a user