Skip to content

Commit 2f5d640

Browse files
committed
Update javascript.vim
1 parent 9ffa79f commit 2f5d640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function s:GetMSL(lnum, in_one_line_scope)
152152

153153
" if there are more closing brackets, continue from the line which has the matching opening bracket
154154
elseif col2 > 0 && !s:IsInStringOrComment(msl, col2) && s:LineHasOpeningBrackets(msl)[0] == '2'
155-
call cursor(msl, col2)
155+
call cursor(msl, 1)
156156
if searchpair('(', '', ')', 'bW', s:skip_expr) > 0
157157
let lnum = line('.')
158158
let msl = lnum

0 commit comments

Comments
 (0)