Skip to content

Commit 92bf4e7

Browse files
committed
Don't add extra indent to each continuation line
1 parent 67be84d commit 92bf4e7

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
@@ -167,7 +167,7 @@ function s:IndentWithContinuation(lnum, ind, width)
167167
" TODO: the || s:IsInString() thing worries me a bit.
168168
if p_lnum != lnum
169169
if s:Match(p_lnum,s:continuation_regex)||s:IsInString(p_lnum,strlen(line))
170-
return a:ind + a:width
170+
return a:ind
171171
endif
172172
endif
173173

0 commit comments

Comments
 (0)