Permalink
Browse files
make :OpenBookmark open a netrw for dir bookmarks
- Loading branch information...
Showing
with
3 additions
and
1 deletion.
-
+3
−1
plugin/NERD_tree.vim
|
@@ -2984,7 +2984,9 @@ function! s:OpenBookmark(name) |
|
|
let bookmarks = s:GetBookmarks()
|
|
|
let targetNode = s:oTreeFileNode.New(bookmarks[a:name])
|
|
|
endtry
|
|
|
- if !targetNode.path.isDirectory
|
|
|
+ if targetNode.path.isDirectory
|
|
|
+ call s:OpenExplorerFor(targetNode)
|
|
|
+ else
|
|
|
call s:OpenFileNode(targetNode)
|
|
|
endif
|
|
|
endfunction
|
|
|
0 comments on commit
f7e8c45