From b7a5ab112ab2267c54acdb6a326642afcd797bc4 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 25 Jun 2018 00:05:59 +0200 Subject: patch 8.1.0115: the matchparen plugin may throw an error Problem: The matchparen plugin may throw an error. Solution: Change the skip argument from zero to "0". --- runtime/plugin/matchparen.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index 4f68fd87bc..0fa5c4d22e 100644 --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -114,7 +114,7 @@ function! s:Highlight_Matching_Pair() " within those syntax types (i.e., not skip). Otherwise, the cursor is " outside of the syntax types and s_skip should keep its value so we skip any " matching pair inside the syntax types. - execute 'if' s_skip '| let s_skip = 0 | endif' + execute 'if' s_skip '| let s_skip = "0" | endif' " Limit the search to lines visible in the window. let stoplinebottom = line('w$') -- cgit v1.2.3