From 01f683c3c40d00a5b6874634277ee062839869da Mon Sep 17 00:00:00 2001 From: Chris Perl Date: Wed, 21 Dec 2011 11:55:04 -0500 Subject: [PATCH] stayInCurrentTab fix --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index cabbc1d..768d2c4 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -399,7 +399,7 @@ function! s:Bookmark.openInNewTab(options) exec "tabedit " . self.path.str({'format': 'Edit'}) endif - if has_key(a:options, 'stayInCurrentTab') + if has_key(a:options, 'stayInCurrentTab') && a:options['stayInCurrentTab'] exec "tabnext " . currentTab endif endfunction