Use window number when opening in new vsplit
This commit is contained in:
parent
e2a9929bbe
commit
eae5d02fa9
@ -225,10 +225,12 @@ function! s:Opener._newVSplit()
|
||||
call nerdtree#exec("wincmd p")
|
||||
vnew
|
||||
|
||||
let currentWin = winnr()
|
||||
|
||||
"resize the nerd tree back to the original size
|
||||
call g:NERDTree.CursorToTreeWin()
|
||||
exec("silent vertical resize ". winwidth)
|
||||
call nerdtree#exec('wincmd p')
|
||||
exe currentWin . "wincmd w"
|
||||
endfunction
|
||||
|
||||
"FUNCTION: Opener.open(target) {{{1
|
||||
|
Loading…
Reference in New Issue
Block a user