Skip to content

Commit a561e12

Browse files
committed
restore try-catch
1 parent c9f5a12 commit a561e12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoload/vital/vimlparser.vim

+4-4
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ let s:Vital._import = s:_function('s:_import')
183183
" s:_get_module() returns module object wihch has all script local functions.
184184
function! s:_get_module(name) abort dict
185185
let funcname = s:_import_func_name(self.plugin_name(), a:name)
186-
" try
187-
" return call(funcname, [])
188-
" catch /^Vim\%((\a\+)\)\?:E117/
186+
try
187+
return call(funcname, [])
188+
catch /^Vim\%((\a\+)\)\?:E117/
189189
return s:_get_builtin_module(a:name)
190-
" endtry
190+
endtry
191191
endfunction
192192

193193
function! s:_get_builtin_module(name) abort

0 commit comments

Comments
 (0)