Skip to content

Commit 29519c6

Browse files
authored
case sensitive
keep forgetting this
1 parent 4a126ee commit 29519c6

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
@@ -180,7 +180,7 @@ function GetJavascriptIndent()
180180
let inb = num == 0 ? 1 : (s:Onescope(num, s:StripLine(strpart(getline(num),0,b:js_cache[2] - 1)),1) ||
181181
\ (line !~ s:line_pre . ',' && pline !~ ',' . s:line_term)) && num < lnum
182182
let switch_offset = (!inb || num == 0) || expand("<cword>") !=# 'switch' ? 0 : &cino !~ ':' || !has('float') ? s:sw() :
183-
\ float2nr(str2float(matchstr(&cino,'.*:\zs[-0-9.]*')) * (&cino =~ '.*:[^,]*s' ? s:sw() : 1))
183+
\ float2nr(str2float(matchstr(&cino,'.*:\zs[-0-9.]*')) * (&cino =~# '.*:[^,]*s' ? s:sw() : 1))
184184

185185
" most significant, find the indent amount
186186
if (inb && (line =~# g:javascript_opfirst ||

0 commit comments

Comments
 (0)