open file bookmarks when user activates them

when the user activates a file bookmark open that file in the previous
window (i.e. do the 'o' mapping)
This commit is contained in:
Martin Grenfell 2008-06-29 01:00:55 +12:00
parent 7ca9b07b68
commit e1bd98fc7c

View File

@ -2688,7 +2688,11 @@ function! s:ActivateNode()
else
let bookmark = s:GetSelectedBookmark()
if !empty(bookmark)
call s:BookmarkToRoot(bookmark.name)
if bookmark.path.isDirectory
call s:BookmarkToRoot(bookmark.name)
else
call s:OpenFileNode(s:oTreeFileNode.New(bookmark.path))
endif
endif
endif
endfunction