mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Merge pull request #578 from wincent/eventignore
Suppress autocmds less aggressively
This commit is contained in:
@@ -92,7 +92,7 @@ endfunction
|
||||
" same as :exec cmd but eventignore=all is set for the duration
|
||||
function! nerdtree#exec(cmd)
|
||||
let old_ei = &ei
|
||||
set ei=all
|
||||
set ei=BufEnter,BufLeave,VimEnter
|
||||
exec a:cmd
|
||||
let &ei = old_ei
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user