Skip to content

Commit feb7252

Browse files
committed
Update javascript.vim
1 parent 2658883 commit feb7252

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
@@ -397,7 +397,7 @@ function GetJavascriptIndent()
397397
return indent(prevline) + s:sw()
398398
end
399399
" If previous line starts with a operator...
400-
elseif s:Match(prevline, s:operator_first) || s:Match(v:lnum, '^\s*[])}]')
400+
elseif s:Match(prevline, s:operator_first) || s:Match(v:lnum, ')' . s:line_term)
401401
let countscur = s:LineHasOpeningBrackets(v:lnum)
402402
let counts = s:LineHasOpeningBrackets(prevline)
403403
if (counts[0] != '1' && counts[1] != '1' || counts[2] != '1') && countscur[0] != '2'

0 commit comments

Comments
 (0)