nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit 0daeebc0eb6c2ab8219e8941e13d48cd2bb35a6b
parent 5939fdb14077863e2f32728c46d7efc8c4f30eb6
Author: Martin Grenfell <martin_grenfell@msn.com>
Date:   Mon, 14 Jul 2008 11:19:56 +1200

Revert "implement copying nodes for windows"

This reverts commit 21601d9c3dd97912456ef1b2737bc77bec3e00e6.

Ok, so that copying command doesnt work for windows... it doesnt do
directories properly.

Diffstat:
Mplugin/NERD_tree.vim | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -83,7 +83,6 @@ let s:running_windows = has("win16") || has("win32") || has("win64")
 "Note: the space after the command is important
 if s:running_windows
     call s:InitVariable("g:NERDTreeRemoveDirCmd", 'rmdir /s /q ')
-    call s:InitVariable("g:NERDTreeCopyCmd", 'copy /Y ')
 else
     call s:InitVariable("g:NERDTreeRemoveDirCmd", 'rm -rf ')
     call s:InitVariable("g:NERDTreeCopyCmd", 'cp -r ')
@@ -1159,14 +1158,9 @@ function! s:oPath.Copy(dest) dict
         throw "NERDTree.Path.CopyingNotSupported Exception: Copying is not supported on this OS"
     endif
 
-    "let dest = s:oPath.WinToUnixPath(a:dest)
-    let dest = a:dest
+    let dest = s:oPath.WinToUnixPath(a:dest)
 
-    if s:running_windows
-        let cmd = g:NERDTreeCopyCmd . " " . self.StrForOS(1) . " \"" . dest . '"'
-    else
-        let cmd = g:NERDTreeCopyCmd . " " . self.StrForOS(0) . " " . dest
-    endif
+    let cmd = g:NERDTreeCopyCmd . " " . self.StrForOS(0) . " " . dest
     let success = system(cmd)
     if success != 0
         throw "NERDTree.Path Exception: Could not copy ''". self.StrForOS(0) ."'' to: '" . a:dest . "'"
@@ -3031,7 +3025,7 @@ function! s:CopyNode()
     let newNodePath = input("Copy the current node\n" .
                           \ "==========================================================\n" .
                           \ "Enter the new path to copy the node to:                   \n" .
-                          \ "", currentNode.path.StrForOS(0))
+                          \ "", currentNode.path.Str(0))
 
     if newNodePath != ""
         "strip trailing slash