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 c76d65b commit cd4ace4Copy full SHA for cd4ace4
indent/javascript.vim
@@ -153,6 +153,9 @@ function s:Balanced(lnum)
153
endfunction
154
155
function GetJavascriptIndent()
156
+ try
157
+ let save_magic = &magic
158
+ set magic
159
if !exists('b:js_cache')
160
let b:js_cache = [0,0,0]
161
endif
@@ -236,6 +239,9 @@ function GetJavascriptIndent()
236
239
return indent(num) + s:W + switch_offset + bL
237
240
238
241
return bL
242
+ finally
243
+ let &magic = save_magic
244
+ endtry
245
246
247
0 commit comments