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)