Skip to content

Commit a0e1442

Browse files
authored
cleaning (#1079)
* cleaning * Update javascript.vim
1 parent b2935fe commit a0e1442

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indent/javascript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ function GetJavascriptIndent()
454454

455455
" main return
456456
if l:line =~ '^[])}]\|^|}'
457-
if l:line_raw[0] == ')' && getline(num)[b:js_cache[2]-1] == '('
457+
if l:line_raw[0] == ')'
458458
if s:ParseCino('M')
459459
return indent(l:lnum)
460-
elseif &cino =~# 'm' && !s:ParseCino('m')
460+
elseif num && &cino =~# 'm' && !s:ParseCino('m')
461461
return virtcol('.') - 1
462462
endif
463463
endif

0 commit comments

Comments
 (0)