mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-23 13:12:41 +08:00
wrap a couple of wincmd calls in s:exec
this is to prevent autocmds from being fired when the tree is closed
This commit is contained in:
parent
57ccede250
commit
e027681803
|
@ -3121,9 +3121,9 @@ function! s:closeTree()
|
|||
|
||||
if winnr("$") != 1
|
||||
if winnr() == s:getTreeWinNum()
|
||||
wincmd p
|
||||
call s:exec("wincmd p")
|
||||
let bufnr = bufnr("")
|
||||
wincmd p
|
||||
call s:exec("wincmd p")
|
||||
else
|
||||
let bufnr = bufnr("")
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user