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
|
" 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
|
||||||
|
Loading…
Reference in New Issue
Block a user