Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/taxilian/nerdtree
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Feb 8, 2011
2 parents 138f25c + 6997b97 commit c2e3bbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/NERD_tree.vim
Expand Up @@ -1230,16 +1230,17 @@ function! s:TreeFileNode.openInNewTab(options)
call s:closeTreeIfQuitOnOpen() call s:closeTreeIfQuitOnOpen()
endif endif


wincmd l call s:exec('wincmd p')
exec "tabedit " . self.path.str({'format': 'Edit'}) exec "tabedit " . self.path.str({'format': 'Edit'})
if g:NERDTreeKeepTreeInNewTab if g:NERDTreeKeepTreeInNewTab
call s:initNerdTreeMirror() call s:initNerdTreeMirror()
call s:findAndRevealPath() call s:findAndRevealPath()
wincmd l call s:exec('wincmd l')
endif endif


if has_key(a:options, 'stayInCurrentTab') && a:options['stayInCurrentTab'] if has_key(a:options, 'stayInCurrentTab') && a:options['stayInCurrentTab']
exec "tabnext " . currentTab exec "tabnext " . currentTab
call s:exec('wincmd p')
endif endif


endfunction endfunction
Expand Down

0 comments on commit c2e3bbe

Please sign in to comment.