Permalink
Browse files

Merge branch 'master' of https://github.com/taxilian/nerdtree

  • Loading branch information...
2 parents 138f25c + 6997b97 commit c2e3bbe762bd1a64f7f949cf07acdd4e480d1519 @spf13 committed Feb 8, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 plugin/NERD_tree.vim
View
@@ -1230,16 +1230,17 @@ function! s:TreeFileNode.openInNewTab(options)
call s:closeTreeIfQuitOnOpen()
endif
- wincmd l
+ call s:exec('wincmd p')
exec "tabedit " . self.path.str({'format': 'Edit'})
if g:NERDTreeKeepTreeInNewTab
call s:initNerdTreeMirror()
call s:findAndRevealPath()
- wincmd l
+ call s:exec('wincmd l')
endif
if has_key(a:options, 'stayInCurrentTab') && a:options['stayInCurrentTab']
exec "tabnext " . currentTab
+ call s:exec('wincmd p')
endif
endfunction

0 comments on commit c2e3bbe

Please sign in to comment.