nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit b528910e7a62f12ead1c345a2759da41edc84ddb
parent dcccd0e532c44196195e352ae43745f47c8615d4
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Wed, 21 Dec 2011 13:19:49 +0000

dont add a trailing slash to auto-named bookmarked dirs

this breaks the highlighting of the nerdtree buffer, and seems dodgy

Diffstat:
Mplugin/NERD_tree.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)