diff src/search.c @ 699:2af8de31a3a8

updated for version 7.0211
author vimboss
date Wed, 01 Mar 2006 22:09:21 +0000
parents a28f83d37113
children 2e887dfa8917
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -1891,6 +1891,8 @@ findmatchlimit(oap, initc, flags, maxtra
 
     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, bigwor
     int		include_white = FALSE;
 
     cls_bigword = bigword;
+    clearpos(&start_pos);
 
 #ifdef FEAT_VISUAL
     /* Correct cursor when 'selection' is exclusive */