commit 08bc9870bce29e59422e652a0f56ca0a6a3ac80c
parent 94e085f1a2d8140df26d3917f1d95ffd5ab69010
Author: marty <martin_grenfell@msn.com>
Date: Sat, 10 Oct 2009 12:30:28 +1300
bugfix: escape filenames for ":edit"ing
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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