Skip to content

Commit d47868c

Browse files
authored
remove magic try
anyone changing the magic setting will have a non-operable program anyway
1 parent 74f6d46 commit d47868c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

indent/javascript.vim

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ function s:Balanced(lnum)
179179
endfunction
180180

181181
function GetJavascriptIndent()
182-
try
183-
let save_magic = &magic
184-
set magic
185182
let b:js_cache = get(b:,'js_cache',[0,0,0])
186183
" Get the current line.
187184
let l:line = getline(v:lnum)
@@ -259,10 +256,6 @@ function GetJavascriptIndent()
259256
return indent(num) + s:W + switch_offset + bL
260257
endif
261258
return bL
262-
263-
finally
264-
let &magic = save_magic
265-
endtry
266259
endfunction
267260

268261
let &cpo = s:cpo_save

0 commit comments

Comments
 (0)