mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-11 04:43:49 -05:00
strip trailing slashes off copy destination
This commit is contained in:
@@ -2495,6 +2495,9 @@ function! s:CopyNode()
|
||||
\ "", currentNode.path.Str(0))
|
||||
|
||||
if newNodePath != ""
|
||||
"strip trailing slash
|
||||
let newNodePath = substitute(newNodePath, '\/$', '', '')
|
||||
|
||||
let confirmed = 1
|
||||
if currentNode.path.CopyingWillOverwrite(newNodePath)
|
||||
echo "\nWarning: copying may overwrite files! Continue? (yN)"
|
||||
|
||||
Reference in New Issue
Block a user