Fix +evil:move-this-file not finding correct file post-move

This commit is contained in:
Henrik Lissner 2017-06-02 18:51:07 +02:00
parent 9967284977
commit f285c34b82

View file

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