commit 9832d4a84a672ea17773139b7757b936461037f7
parent b7cdc191ca25aef5525a39acfdc938dee5a26674
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date: Fri, 6 Jan 2012 13:38:31 +0000
fix Bookmark so it uses the new TreeFileNode.open method
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -192,13 +192,15 @@ endif
"============================================================
let s:Bookmark = {}
" FUNCTION: Bookmark.activate() {{{3
-function! s:Bookmark.activate()
+function! s:Bookmark.activate(...)
+ let opts = a:0 ? a:1 : {}
+
if self.path.isDirectory
call self.toRoot()
else
if self.validate()
let n = s:TreeFileNode.New(self.path)
- call n.open()
+ call n.open(opts)
call s:closeTreeIfQuitOnOpen()
endif
endif