From 2b1eecebb2f2888641740fb65bff7211c6335e18 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 22 Jun 2008 17:19:07 +1200 Subject: [PATCH] bugfix for renaming files --- plugin/NERD_tree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 04df7cf..d5c3232 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1212,7 +1212,7 @@ function! s:oPath.Rename(newPath) dict throw "NERDTree.Path.InvalidArguments exception. Invalid newPath for renaming = ". a:newPath endif - let success = rename(self.StrForOS(!s:running_windows), a:newPath) + let success = rename(self.StrForOS(0), a:newPath) if success != 0 throw "NERDTree.Path.Rename Exception: Could not rename: '" . self.StrForOS(0) . "'" . 'to:' . a:newPath endif