mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Put the eventignore reset inside a finally block to ensure it's called.
This commit is contained in:
@@ -169,8 +169,11 @@ function! nerdtree#exec(cmd, ignoreAll) abort
|
||||
if a:ignoreAll
|
||||
set eventignore=all
|
||||
endif
|
||||
exec a:cmd
|
||||
let &eventignore = old_ei
|
||||
try
|
||||
exec a:cmd
|
||||
finally
|
||||
let &eventignore = old_ei
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
" FUNCTION: nerdtree#has_opt(options, name) {{{2
|
||||
|
||||
Reference in New Issue
Block a user