Update file state icon after widening

This commit is contained in:
Evgeni Kolev 2018-12-05 13:13:07 +02:00 committed by GitHub
parent dbfdf1b0b0
commit d6550fafd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -767,6 +767,7 @@ buffer where knowing the current project directory is important."
(advice-add #'undo :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'undo-tree-undo :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'narrow-to-region :after #'doom-modeline-update-buffer-file-state-icon)
(advice-add #'widen :after #'doom-modeline-update-buffer-file-state-icon)
(defvar-local doom-modeline--buffer-file-name nil)
(defun doom-modeline-update-buffer-file-name (&rest _)