Skip to content

Commit

Permalink
Merge pull request preservim#50 from sdewald/master
Browse files Browse the repository at this point in the history
Fix for issue preservim#22 -- "FUNCTION: NERDTreeAddNode() cannot handle paths with spaces"
  • Loading branch information
scrooloose committed May 6, 2011
2 parents 2e072fe + 6a6ffe2 commit bf73470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nerdtree_plugin/fs_menu.vim
Expand Up @@ -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.")
Expand Down
2 changes: 1 addition & 1 deletion plugin/NERD_tree.vim
Expand Up @@ -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 . "'"
Expand Down

0 comments on commit bf73470

Please sign in to comment.