summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-01 22:09:21 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-01 22:09:21 +0000
commitfd2ac767ebb66adcb7ca85955f5fd40704475595 (patch)
tree16e61ca0dbcc0ffeb10a3fb5072842144ca9f89d /src/search.c
parente1438bb8d0b7a48f712458e68755ab8b66d92ace (diff)
downloadvim-git-fd2ac767ebb66adcb7ca85955f5fd40704475595.tar.gz
updated for version 7.0211
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c3
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 */