nerdtree

A tree explorer plugin for vim.
Index Commits Files Refs
commit bf7347072378e5c9a7fe5d325d20e602df953e5e
parent 2e072fe0e23a92c75f08cae04cb50ed4212b79f6
Author: Martin Grenfell <martin.grenfell@gmail.com>
Date:   Fri,  6 May 2011 02:33:57 -0700

Merge pull request #50 from sdewald/master

Fix for issue #22 -- "FUNCTION: NERDTreeAddNode() cannot handle paths with spaces"
Diffstat:
Mnerdtree_plugin/fs_menu.vim | 2+-
Mplugin/NERD_tree.vim | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nerdtree_plugin/fs_menu.vim b/nerdtree_plugin/fs_menu.vim
@@ -57,7 +57,7 @@ function! NERDTreeAddNode()
     let newNodeName = input("Add a childnode\n".
                           \ "==========================================================\n".
                           \ "Enter the dir/file name to be created. Dirs end with a '/'\n" .
-                          \ "", curDirNode.path.str({'format': 'Glob'}) . g:NERDTreePath.Slash())
+                          \ "", curDirNode.path.str() . g:NERDTreePath.Slash())
 
     if newNodeName ==# ''
         call s:echo("Node Creation Aborted.")
diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim
@@ -2029,7 +2029,7 @@ function! s:Path.copy(dest)
 
     let dest = s:Path.WinToUnixPath(a:dest)
 
-    let cmd = g:NERDTreeCopyCmd . " " . self.str() . " " . dest
+    let cmd = g:NERDTreeCopyCmd . " " . escape(self.str(), s:escape_chars) . " " . escape(dest, s:escape_chars)
     let success = system(cmd)
     if success != 0
         throw "NERDTree.CopyError: Could not copy ''". self.str() ."'' to: '" . a:dest . "'"