strip trailing slashes off copy destination

This commit is contained in:
Martin Grenfell 2008-06-03 21:40:16 +12:00
parent 7a1dbcbdb0
commit b747086137

View File

@ -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)"