aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/matchit.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/plugin/matchit.vim')
-rw-r--r--runtime/plugin/matchit.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/plugin/matchit.vim b/runtime/plugin/matchit.vim
index 8053b080e1..c0f1f08027 100644
--- a/runtime/plugin/matchit.vim
+++ b/runtime/plugin/matchit.vim
@@ -123,7 +123,6 @@ function! s:Match_wrapper(word, forward, mode) range
" Thanks to Preben "Peppe" Guldberg and Bram Moolenaar for this suggestion!
if (match_words != s:last_words) || (&mps != s:last_mps) ||
\ exists("b:match_debug")
- let s:last_words = match_words
let s:last_mps = &mps
" The next several lines were here before
" BF started messing with this script.
@@ -135,6 +134,7 @@ function! s:Match_wrapper(word, forward, mode) range
\ '\/\*:\*\/,#\s*if\%(def\)\=:#\s*else\>:#\s*elif\>:#\s*endif\>'
" s:all = pattern with all the keywords
let match_words = match_words . (strlen(match_words) ? "," : "") . default
+ let s:last_words = match_words
if match_words !~ s:notslash . '\\\d'
let s:do_BR = 0
let s:pat = match_words