Update the buffer file name after reverting the file.

This commit is contained in:
Vincent Zhang 2018-11-14 01:35:24 +08:00
parent e075339b2b
commit b6f98e4646

View file

@ -523,6 +523,7 @@ active.")
(when face `(:inherit ,face))))))
'help-echo buffer-file-truename))))
(add-hook 'find-file-hook #'doom-modeline-update-buffer-file-name)
(add-hook 'after-revert-hook #'doom-modeline-update-buffer-file-name)
(add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name)
(defun doom-modeline--buffer-file-name-truncate (file-path true-file-path &optional truncate-tail)