Skip to content

Commit

Permalink
Do not reuse windows across tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Apr 9, 2014
1 parent af25300 commit b2ec5c9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/nerdtree/opener.vim
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ function! s:Opener._reuseWindow()
call self._checkToCloseTree(0)
return 1
else
"check other tabs
let tabnr = self._path.tabnr()
if tabnr
call self._checkToCloseTree(1)
call nerdtree#exec('normal! ' . tabnr . 'gt')
let winnr = bufwinnr('^' . self._path.str() . '$')
call nerdtree#exec(winnr . "wincmd w")
return 1
endif
" "check other tabs
" let tabnr = self._path.tabnr()
" if tabnr
" call self._checkToCloseTree(1)
" call nerdtree#exec('normal! ' . tabnr . 'gt')
" let winnr = bufwinnr('^' . self._path.str() . '$')
" call nerdtree#exec(winnr . "wincmd w")
" return 1
" endif
endif
return 0
endfunction
Expand Down

0 comments on commit b2ec5c9

Please sign in to comment.