From aef6baf6e2513f43d8b789bdc087898c82608a5f Mon Sep 17 00:00:00 2001 From: Kebin Liu Date: Wed, 3 Jul 2019 23:11:25 +0800 Subject: [PATCH] Update ui_glue.vim (#1014) Fix `` key map on the bookmark --- autoload/nerdtree/ui_glue.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/nerdtree/ui_glue.vim b/autoload/nerdtree/ui_glue.vim index 057e799..045e8ad 100644 --- a/autoload/nerdtree/ui_glue.vim +++ b/autoload/nerdtree/ui_glue.vim @@ -95,7 +95,7 @@ endfunction "FUNCTION: s:customOpenBookmark() {{{1 " Open bookmark node with the "custom" key, initially . function! s:customOpenBookmark(node) - if node.isDirectory + if a:node.path.isDirectory call a:node.activate(b:NERDTree, s:initCustomOpenArgs().dir) else call a:node.activate(b:NERDTree, s:initCustomOpenArgs().file)