mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix +evil:move-this-file not finding correct file post-move
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user