From 08bc9870bce29e59422e652a0f56ca0a6a3ac80c Mon Sep 17 00:00:00 2001 From: marty Date: Sat, 10 Oct 2009 12:30:28 +1300 Subject: [PATCH] bugfix: escape filenames for ":edit"ing --- plugin/NERD_tree.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 858c61d..c9d083a 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -2268,6 +2268,8 @@ function! s:Path._strForEdit() let cwd = tolower(getcwd()) endif + let p = escape(p, s:escape_chars) + let cwd = cwd . s:Path.Slash() "return a relative path if we can