From efd2f3ac4c252b528cc0a1d8aa82f4b20e0db397 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 18 Sep 2019 17:38:06 +0800 Subject: [PATCH] Fix #221: update file state icon after org-toggle-narrow-to-subtree. --- doom-modeline-segments.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 2c57ce5..090d980 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -305,6 +305,7 @@ Uses `all-the-icons-material' to fetch the icon." (advice-add #'org-narrow-to-block :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'org-narrow-to-element :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'org-narrow-to-subtree :after #'doom-modeline-update-buffer-file-state-icon) +(advice-add #'org-toggle-narrow-to-subtree :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'org-edit-src-save :after #'doom-modeline-update-buffer-file-state-icon) (advice-add #'symbol-overlay-rename :after #'doom-modeline-update-buffer-file-state-icon)