Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit c2e3bbe762bd1a64f7f949cf07acdd4e480d1519 2 parents 138f25c + 6997b97
@spf13 authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 plugin/NERD_tree.vim
View
5 plugin/NERD_tree.vim
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.