Permalink
Browse files

make :OpenBookmark open a netrw for dir bookmarks

  • Loading branch information...
scrooloose committed Jun 13, 2008
1 parent 58ccd23 commit f7e8c453ea8d7fca80d3891c143742922070b5f2
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugin/NERD_tree.vim
View
@@ -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

Please sign in to comment.