Fixed two bugs affecting adding and copying nodes with escaped chars (e.g. spaces) in the filepath

This commit is contained in:
Steve DeWald
2011-02-20 09:40:34 -08:00
parent 2504666a72
commit 1de3c22a44
2 changed files with 2 additions and 2 deletions

View File

@@ -2010,7 +2010,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 . "'"