We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63daab7 commit 294563cCopy full SHA for 294563c
1 file changed
indent/javascript.vim
@@ -273,7 +273,8 @@ function GetJavascriptIndent()
273
let switch_offset = s:W
274
else
275
let cinc = matchlist(&cino,'.*:\(-\)\=\([0-9.]*\)\(s\)\=\C')
276
- let switch_offset = float2nr(str2float(cinc[1].(strlen(cinc[2]) ? cinc[2] : 1)) * (strlen(cinc[3]) ? s:W : 1))
+ let switch_offset = float2nr(str2float(cinc[1].(strlen(cinc[2]) ? cinc[2] : strlen(cinc[3])))
277
+ \ * (strlen(cinc[3]) ? s:W : 1))
278
endif
279
if pline[-1:] != '.' && l:line =~# '^' . s:case_stmt
280
return indent(num) + switch_offset
0 commit comments