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 22c6f6d commit ea58033Copy full SHA for ea58033
indent/javascript.vim
@@ -369,7 +369,8 @@ function GetJavascriptIndent()
369
370
" If line starts with an operator...
371
if (line =~ s:operator_first)
372
- if (s:Match(lnum, s:operator_first) || s:Match(lnum, s:line_pre . '[])}]'))
+ if (s:Match(lnum, s:operator_first) || (s:Match(lnum, s:line_pre . '[])}]') &&
373
+ \ !(s:Match(v:lnum,s:line_pre . '\.') && s:Match(lnum, ')' . s:line_term))))
374
" and so does previous line, don't indent
375
return indent(lnum)
376
end
0 commit comments