Skip to content

Commit fe096c0

Browse files
committed
another edge side effect (#443)
this is just a more correct, thorough check, for multiline comments
1 parent c5fba22 commit fe096c0

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
@@ -348,7 +348,7 @@ function GetJavascriptIndent()
348348

349349
" If we are in a multi-line comment, cindent does the right thing.
350350
if s:IsInMultilineComment(v:lnum, 1) && !s:IsLineComment(v:lnum, 1) &&
351-
\ s:IsInMultilineComment(v:lnum, match(line, '\s*$'))
351+
\ s:IsInMultilineComment(v:lnum, match(line, '\s*$')) && line !~ '^\/\*'
352352
return cindent(v:lnum)
353353
endif
354354

0 commit comments

Comments
 (0)