Skip to content

Commit c76d65b

Browse files
authored
fail earlier
1 parent 833d6ec commit c76d65b

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
@@ -190,7 +190,7 @@ function GetJavascriptIndent()
190190
call cursor(v:lnum,1)
191191
if getline(l:lnum) !~ '^\S'
192192
let [s:looksyn,s:free] = [v:lnum - 1,1]
193-
if b:js_cache[0] < v:lnum && b:js_cache[0] >= l:lnum &&
193+
if b:js_cache[0] >= l:lnum && b:js_cache[0] < v:lnum &&
194194
\ (b:js_cache[0] > l:lnum || s:Balanced(l:lnum))
195195
let num = b:js_cache[1]
196196
elseif l:line =~ '^[])}]'

0 commit comments

Comments
 (0)