Skip to content

Commit 3ca2f63

Browse files
authored
fix, keep cache valid in tag
1 parent 10f7193 commit 3ca2f63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

indent/javascript.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ function GetJavascriptIndent()
345345
\ (b:js_cache[0] > l:lnum || s:Balanced(l:lnum))
346346
if b:js_cache[2]
347347
call call('cursor',b:js_cache[1:])
348+
elseif b:js_cache[1]
349+
let l:scriptTag = b:js_cache[1]
348350
endif
349351
else
350352
if &indentexpr =~? '^html'

0 commit comments

Comments
 (0)