From fd2ac767ebb66adcb7ca85955f5fd40704475595 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 1 Mar 2006 22:09:21 +0000 Subject: updated for version 7.0211 --- src/search.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/search.c') 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 */ -- cgit v1.2.3