]> granicus.if.org Git - vim/commitdiff
patch 8.1.0115: the matchparen plugin may throw an error v8.1.0115
authorBram Moolenaar <Bram@vim.org>
Sun, 24 Jun 2018 22:05:59 +0000 (00:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 24 Jun 2018 22:05:59 +0000 (00:05 +0200)
Problem:    The matchparen plugin may throw an error.
Solution:   Change the skip argument from zero to "0".

runtime/plugin/matchparen.vim
src/version.c

index 4f68fd87bc0a913d72b9f707ddefec234e57c2f7..0fa5c4d22edf30e95a45cbd85474dd5cda8cb42f 100644 (file)
@@ -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$')
index 076778ac3cf63a67eb14d47c00ed5c0f6be242cd..fa4ec6052ca38342509a37a758899b97943b52d3 100644 (file)
@@ -789,6 +789,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    115,
 /**/
     114,
 /**/