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:
Martin Grenfell 2012-01-06 19:24:35 +00:00
parent 57ccede250
commit e027681803

View File

@ -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