We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2658883 commit feb7252Copy full SHA for feb7252
indent/javascript.vim
@@ -397,7 +397,7 @@ function GetJavascriptIndent()
397
return indent(prevline) + s:sw()
398
end
399
" If previous line starts with a operator...
400
- elseif s:Match(prevline, s:operator_first) || s:Match(v:lnum, '^\s*[])}]')
+ elseif s:Match(prevline, s:operator_first) || s:Match(v:lnum, ')' . s:line_term)
401
let countscur = s:LineHasOpeningBrackets(v:lnum)
402
let counts = s:LineHasOpeningBrackets(prevline)
403
if (counts[0] != '1' && counts[1] != '1' || counts[2] != '1') && countscur[0] != '2'
0 commit comments