mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-10 04:13:48 -05: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:
@@ -3121,9 +3121,9 @@ function! s:closeTree()
|
|||||||
|
|
||||||
if winnr("$") != 1
|
if winnr("$") != 1
|
||||||
if winnr() == s:getTreeWinNum()
|
if winnr() == s:getTreeWinNum()
|
||||||
wincmd p
|
call s:exec("wincmd p")
|
||||||
let bufnr = bufnr("")
|
let bufnr = bufnr("")
|
||||||
wincmd p
|
call s:exec("wincmd p")
|
||||||
else
|
else
|
||||||
let bufnr = bufnr("")
|
let bufnr = bufnr("")
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user