nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit b74708613721527c25ce095085cb555fc1398548
parent 7a1dbcbdb017380246017854861cb3dd14f150fc
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Tue,  3 Jun 2008 21:40:16 +1200

strip trailing slashes off copy destination

Diffstat:
Mplugin/NERD_tree.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2495,6 +2495,9 @@ function! s:CopyNode()
                           \ "", currentNode.path.Str(0))
 
     if newNodePath != ""
+        "strip trailing slash
+        let newNodePath = substitute(newNodePath, '\/$', '', '')
+
         let confirmed = 1
         if currentNode.path.CopyingWillOverwrite(newNodePath)
             echo "\nWarning: copying may overwrite files! Continue? (yN)"