commit | db333a5b8d0c72b7342d6d65ad2895a19a1c29d2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Mar 19 15:27:48 2013 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Mar 19 15:27:48 2013 +0100 |
tree | ba5d5768d952510d3f3e10f6a258e409e33d974e | |
parent | af62ff3696514a4f1b595629bcfa584748bc29ce [diff] [blame] |
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.
diff --git a/src/search.c b/src/search.c index fc74680..934e4b0 100644 --- a/src/search.c +++ b/src/search.c
@@ -727,6 +727,8 @@ ++matchcol; } } + if (options & SEARCH_START) + break; if (ptr[matchcol] == NUL || (nmatched = vim_regexec_multi(®match, win, buf, lnum + matchpos.lnum,