We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a53417 commit 89fcb6bCopy full SHA for 89fcb6b
1 file changed
indent/javascript.vim
@@ -466,7 +466,7 @@ function GetJavascriptIndent()
466
elseif num
467
return s:Nat(num_ind + get(l:,'case_offset',s:sw()) + l:switch_offset + b_l + is_op)
468
elseif nest
469
- return indent(nest) + s:sw() + b_l + is_op
+ return indent(nextnonblank(nest+1)) + b_l + is_op
470
endif
471
return b_l + is_op
472
endfunction
0 commit comments