make :OpenBookmark open a netrw for dir bookmarks

This commit is contained in:
Martin Grenfell
2008-06-13 12:51:06 +12:00
parent 58ccd230fa
commit f7e8c453ea

View File

@@ -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