From b528910e7a62f12ead1c345a2759da41edc84ddb Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 21 Dec 2011 13:19:49 +0000 Subject: [PATCH] dont add a trailing slash to auto-named bookmarked dirs this breaks the highlighting of the nerdtree buffer, and seems dodgy --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index fbaee5e..27b8064 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -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)