Skip to content

Commit 055ce0c

Browse files
authored
switch stuff
1 parent efab7db commit 055ce0c

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
@@ -181,7 +181,7 @@ function GetJavascriptIndent()
181181
\ float2nr(str2float(matchstr(&cino,'.*:\zs[-0-9.]*')) * (&cino =~# '.*:[^,]*s' ? s:sw() : 1))
182182

183183
" most significant, find the indent amount
184-
if (inb && (l:line =~# g:javascript_opfirst || (!swcase && pline =~# g:javascript_continuation))) ||
184+
if (inb && (!swcase && (l:line =~# g:javascript_opfirst || pline =~# g:javascript_continuation))) ||
185185
\ (num < l:lnum && s:OneScope(l:lnum,pline,0) =~# '\<\%(for\|each\|if\|let\|no\sb\|w\%(hile\|ith\)\)\>' &&
186186
\ l:line !~ s:line_pre . '{')
187187
return (num > 0 ? indent(num) : -s:sw()) + (s:sw() * 2) + switch_offset

0 commit comments

Comments
 (0)