diff --git a/modules/feature/evil/autoload/files.el b/modules/feature/evil/autoload/files.el index c32b3cd0b..02cbcdbb9 100644 --- a/modules/feature/evil/autoload/files.el +++ b/modules/feature/evil/autoload/files.el @@ -77,7 +77,8 @@ overwrite the destination file if it exists, without confirmation." :repeat nil (interactive "") (pcase (catch 'status - (let ((old-path (buffer-file-name))) + (let ((old-path (buffer-file-name)) + (new-path (expand-file-name new-path))) (when-let (dest (+evil--copy-file old-path new-path force-p)) (delete-file old-path) (kill-this-buffer)