mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 19:33:50 -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
|
" same as :exec cmd but eventignore=all is set for the duration
|
||||||
function! nerdtree#exec(cmd)
|
function! nerdtree#exec(cmd)
|
||||||
let old_ei = &ei
|
let old_ei = &ei
|
||||||
set ei=all
|
set ei=BufEnter,BufLeave,VimEnter
|
||||||
exec a:cmd
|
exec a:cmd
|
||||||
let &ei = old_ei
|
let &ei = old_ei
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user