mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 14:38:52 +08:00
Merge pull request #578 from wincent/eventignore
Suppress autocmds less aggressively
This commit is contained in:
commit
45f4d61f04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user