Fix doom/move-this-file not opening renamed file

This commit is contained in:
Henrik Lissner 2019-03-03 02:17:42 -05:00
parent 78b4c784a6
commit 66d23e39bb
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -184,9 +184,9 @@ file if it exists, without confirmation."
(when (file-exists-p old-path)
(delete-file old-path))
(kill-this-buffer)
(find-file new-path)
(doom--forget-file old-path new-path)
(doom--update-file new-path)
(find-file new-path)
(message "File successfully moved to %s" dest))))
(`overwrite-self (error "Cannot overwrite self"))
(`aborted (message "Aborted"))