mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
bugfix for renaming files
This commit is contained in:
@@ -1212,7 +1212,7 @@ function! s:oPath.Rename(newPath) dict
|
|||||||
throw "NERDTree.Path.InvalidArguments exception. Invalid newPath for renaming = ". a:newPath
|
throw "NERDTree.Path.InvalidArguments exception. Invalid newPath for renaming = ". a:newPath
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let success = rename(self.StrForOS(!s:running_windows), a:newPath)
|
let success = rename(self.StrForOS(0), a:newPath)
|
||||||
if success != 0
|
if success != 0
|
||||||
throw "NERDTree.Path.Rename Exception: Could not rename: '" . self.StrForOS(0) . "'" . 'to:' . a:newPath
|
throw "NERDTree.Path.Rename Exception: Could not rename: '" . self.StrForOS(0) . "'" . 'to:' . a:newPath
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user