Skip to content

Commit 89fcb6b

Browse files
authored
conform to html option
1 parent 0a53417 commit 89fcb6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ function GetJavascriptIndent()
466466
elseif num
467467
return s:Nat(num_ind + get(l:,'case_offset',s:sw()) + l:switch_offset + b_l + is_op)
468468
elseif nest
469-
return indent(nest) + s:sw() + b_l + is_op
469+
return indent(nextnonblank(nest+1)) + b_l + is_op
470470
endif
471471
return b_l + is_op
472472
endfunction

0 commit comments

Comments
 (0)