summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/eos/jao-minibuffer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el
index 549600d..3d98a71 100644
--- a/lib/eos/jao-minibuffer.el
+++ b/lib/eos/jao-minibuffer.el
@@ -154,7 +154,7 @@
:underline jao-minibuffer-inactive-buffer-line-color
:extend t))
(advice-add 'force-mode-line-update :after #'jao-minibuffer-refresh)
- (advice-add 'select-window :after #'jao-minibuffer-refresh)
+ (add-hook 'window-selection-change-functions #'jao-minibuffer-refresh)
(jao-minibuffer-add-variable 'jao-minibuffer--mode-line-format order))
;;;###autoload
@@ -171,6 +171,7 @@
(when (and jao-minibuffer-enabled-p
(not (bound-and-true-p current-minibuffer-command)))
(let* ((jao-minibuffer-enabled-p nil)
+ (window-selection-change-functions nil)
(msg (jao-minibuffer--format-info jao-minibuffer-msg-info))
(msg (jao-minibuffer--format-msg (or msg ""))))
(jao-minibuffer--insert (or msg "")))))