We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833d6ec commit c76d65bCopy full SHA for c76d65b
indent/javascript.vim
@@ -190,7 +190,7 @@ function GetJavascriptIndent()
190
call cursor(v:lnum,1)
191
if getline(l:lnum) !~ '^\S'
192
let [s:looksyn,s:free] = [v:lnum - 1,1]
193
- if b:js_cache[0] < v:lnum && b:js_cache[0] >= l:lnum &&
+ if b:js_cache[0] >= l:lnum && b:js_cache[0] < v:lnum &&
194
\ (b:js_cache[0] > l:lnum || s:Balanced(l:lnum))
195
let num = b:js_cache[1]
196
elseif l:line =~ '^[])}]'
0 commit comments