diff src/search.c @ 4240:d52c45b35fb0 v7.3.871

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.
author Bram Moolenaar <bram@vim.org>
date Tue, 19 Mar 2013 15:27:48 +0100
parents 7728d626ae03
children 96f478b812b1
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -727,6 +727,8 @@ searchit(win, buf, pos, dir, pat, count,
 					++matchcol;
 				}
 			    }
+			    if (options & SEARCH_START)
+				break;
 			    if (ptr[matchcol] == NUL
 				    || (nmatched = vim_regexec_multi(&regmatch,
 					      win, buf, lnum + matchpos.lnum,