Skip to content

Commit 4c0a554

Browse files
authored
matchend
non-trivial
1 parent 7c73d8e commit 4c0a554

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function s:Balanced(lnum,line)
248248
let pos = match(a:line, '[][(){}]')
249249
while pos != -1
250250
if s:SynAt(a:lnum,pos + 1) !~? b:syng_strcom
251-
let l:open += match(' ' . a:line[pos],'[[({]')
251+
let l:open += matchend(a:line[pos],'[[({]')
252252
if l:open < 0
253253
return
254254
endif

0 commit comments

Comments
 (0)