mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix doom/move-this-file not opening renamed file
This commit is contained in:
@ -184,9 +184,9 @@ file if it exists, without confirmation."
|
|||||||
(when (file-exists-p old-path)
|
(when (file-exists-p old-path)
|
||||||
(delete-file old-path))
|
(delete-file old-path))
|
||||||
(kill-this-buffer)
|
(kill-this-buffer)
|
||||||
(find-file new-path)
|
|
||||||
(doom--forget-file old-path new-path)
|
(doom--forget-file old-path new-path)
|
||||||
(doom--update-file new-path)
|
(doom--update-file new-path)
|
||||||
|
(find-file new-path)
|
||||||
(message "File successfully moved to %s" dest))))
|
(message "File successfully moved to %s" dest))))
|
||||||
(`overwrite-self (error "Cannot overwrite self"))
|
(`overwrite-self (error "Cannot overwrite self"))
|
||||||
(`aborted (message "Aborted"))
|
(`aborted (message "Aborted"))
|
||||||
|
Reference in New Issue
Block a user