From b3e1dacbeef267adff30ff26c793f2f4d8d6aa0a Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 11 Mar 2019 00:22:13 +0700 Subject: [PATCH] [Compatibility] Fix incorrect file state with popup. --- doom-modeline-segments.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 3e6b6d9..0b8f632 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -298,6 +298,8 @@ mouse-1: Previous buffer\nmouse-3: Next buffer" (advice-add #'undo-tree-redo-1 :after #'doom-modeline-update-buffer-file-name) (advice-add #'fill-paragraph :after #'doom-modeline-update-buffer-file-name) (advice-add #'symbol-overlay-rename :after #'doom-modeline-update-buffer-file-name) +(advice-add #'popup-create :after #'doom-modeline-update-buffer-file-name) +(advice-add #'popup-delete :after #'doom-modeline-update-buffer-file-name) (advice-add #'doom-modeline-set-selected-window :after #'doom-modeline-update-buffer-file-name) (if (fboundp 'doom-modeline-refresh-frame) (advice-add #'doom-modeline-refresh-frame :after #'doom-modeline-update-buffer-file-name))