mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-25 17:57:24 +08:00
strip trailing slashes off copy destination
This commit is contained in:
parent
7a1dbcbdb0
commit
b747086137
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue
Block a user