Skip to content

Commit b7a5ab1

Browse files
committed
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".
1 parent 0119a59 commit b7a5ab1

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

runtime/plugin/matchparen.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function! s:Highlight_Matching_Pair()
114114
" within those syntax types (i.e., not skip). Otherwise, the cursor is
115115
" outside of the syntax types and s_skip should keep its value so we skip any
116116
" matching pair inside the syntax types.
117-
execute 'if' s_skip '| let s_skip = 0 | endif'
117+
execute 'if' s_skip '| let s_skip = "0" | endif'
118118

119119
" Limit the search to lines visible in the window.
120120
let stoplinebottom = line('w$')

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,8 @@ static char *(features[]) =
789789

790790
static int included_patches[] =
791791
{ /* Add new patch number below this line */
792+
/**/
793+
115,
792794
/**/
793795
114,
794796
/**/

0 commit comments

Comments
 (0)