Fix +evil:move-this-file not finding correct file post-move
This commit is contained in:
parent
9967284977
commit
f285c34b82
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ overwrite the destination file if it exists, without confirmation."
|
|||
:repeat nil
|
||||
(interactive "<f><!>")
|
||||
(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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue