dont add a trailing slash to auto-named bookmarked dirs

this breaks the highlighting of the nerdtree buffer, and seems dodgy
This commit is contained in:
Martin Grenfell
2011-12-21 13:19:49 +00:00
parent dcccd0e532
commit b528910e7a

View File

@@ -3563,7 +3563,7 @@ function! s:bookmarkNode(...)
if currentNode != {}
let name = a:1
if empty(name)
let name = currentNode.path.getLastPathComponent(1)
let name = currentNode.path.getLastPathComponent(0)
endif
try
call currentNode.bookmark(name)