emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/keycast d54a8ebc08 27/31: Restore updating while in minibu


From: ELPA Syncer
Subject: [nongnu] elpa/keycast d54a8ebc08 27/31: Restore updating while in minibuffer
Date: Sun, 9 Jan 2022 05:58:53 -0500 (EST)

branch: elpa/keycast
commit d54a8ebc080c1796ef17aa5020bc73ba785ab36a
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    Restore updating while in minibuffer
    
    In [1: 44f53d7] we started only updating the current buffer's
    mode-line, among other things.  This not only broke updating
    the mode-line when in the minibuffer, the given reason was also
    wrong: the mention moody issue is not actually affected by this.
    
    For a tiny performance boost, we keep limiting updating to the
    current buffer if it isn't the minibuffer.
    
    Closes #15.
    
    1: 44f53d7cc62342d48fcba4d555ab204c8d7e482a
       Limit updating of mode-line
---
 keycast.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keycast.el b/keycast.el
index aacc5589e3..91f0c7baaa 100644
--- a/keycast.el
+++ b/keycast.el
@@ -1,6 +1,6 @@
 ;;; keycast.el --- Show current command and its key in the mode line  -*- 
lexical-binding: t -*-
 
-;; Copyright (C) 2018-2020  Jonas Bernoulli
+;; Copyright (C) 2018-2021  Jonas Bernoulli
 
 ;; Author: Jonas Bernoulli <jonas@bernoul.li>
 ;; Homepage: https://github.com/tarsius/keycast
@@ -220,7 +220,7 @@ instead."
   (when keycast-log-mode
     (keycast-log-update-buffer))
   (when keycast-mode
-    (force-mode-line-update)))
+    (force-mode-line-update (minibufferp))))
 
 (defun keycast--format (format)
   (and (not keycast--reading-passwd)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]