diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-01 22:09:21 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-01 22:09:21 +0000 |
commit | fd2ac767ebb66adcb7ca85955f5fd40704475595 (patch) | |
tree | 16e61ca0dbcc0ffeb10a3fb5072842144ca9f89d /src/search.c | |
parent | e1438bb8d0b7a48f712458e68755ab8b66d92ace (diff) | |
download | vim-fd2ac767ebb66adcb7ca85955f5fd40704475595.zip |
updated for version 7.0211
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index 27b9ac13d..163605c55 100644 --- a/src/search.c +++ b/src/search.c @@ -1891,6 +1891,8 @@ findmatchlimit(oap, initc, flags, maxtravel) do_quotes = -1; start_in_quotes = MAYBE; + clearpos(&match_pos); + /* backward search: Check if this line contains a single-line comment */ if ((backwards && comment_dir) #ifdef FEAT_LISP @@ -3096,6 +3098,7 @@ current_word(oap, count, include, bigword) int include_white = FALSE; cls_bigword = bigword; + clearpos(&start_pos); #ifdef FEAT_VISUAL /* Correct cursor when 'selection' is exclusive */ |