Skip to content

Commit 3ebaef3

Browse files
committed
slight changes continuing from before
this should be working now
1 parent 7c7add5 commit 3ebaef3

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
@@ -291,7 +291,7 @@ function s:IndentWithContinuation(lnum, ind, width)
291291
if s:Match(lnum, s:continuation_regex)
292292
if lnum == p_lnum
293293
return msl_ind + a:width
294-
elseif s:InMultiVarStatement(lnum)
294+
elseif s:InMultiVarStatement(lnum) && getline(lnum) =~ s:comma_last
295295
return msl_ind - a:width
296296
else
297297
return msl_ind

0 commit comments

Comments
 (0)