Skip to content

Commit 294563c

Browse files
authored
&cino format
1 parent 63daab7 commit 294563c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

indent/javascript.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ function GetJavascriptIndent()
273273
let switch_offset = s:W
274274
else
275275
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))
276+
let switch_offset = float2nr(str2float(cinc[1].(strlen(cinc[2]) ? cinc[2] : strlen(cinc[3])))
277+
\ * (strlen(cinc[3]) ? s:W : 1))
277278
endif
278279
if pline[-1:] != '.' && l:line =~# '^' . s:case_stmt
279280
return indent(num) + switch_offset

0 commit comments

Comments
 (0)