aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-10-19 15:43:04 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-10-24 13:26:55 +0200
commitf96dfae52fe5ec211f6cfdf539882f2d10806374 (patch)
treeb0b168ee8339a552c8f1e88eabab6563f8aafffc /runtime/plugin
parentfb503d73da49e26a3e44a07cd7c857d9fda9d035 (diff)
downloadrneovim-f96dfae52fe5ec211f6cfdf539882f2d10806374.tar.gz
rneovim-f96dfae52fe5ec211f6cfdf539882f2d10806374.tar.bz2
rneovim-f96dfae52fe5ec211f6cfdf539882f2d10806374.zip
doc; vim-patch.sh
Also include missing changes from: https://github.com/vim/vim/commit/06d2d38ab7564e1f784b1058a4ef4580cd6d1810 https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
Diffstat (limited to 'runtime/plugin')
-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