emacs-diffs
[Top][All Lists]
Advanced

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

master 60219b1e4e: * lisp/tab-bar.el (tab-bar-auto-width): Add selected-


From: Juri Linkov
Subject: master 60219b1e4e: * lisp/tab-bar.el (tab-bar-auto-width): Add selected-frame to the cache key.
Date: Wed, 9 Nov 2022 12:30:02 -0500 (EST)

branch: master
commit 60219b1e4ecf1568718eb2c39081f3b410a6756f
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * lisp/tab-bar.el (tab-bar-auto-width): Add selected-frame to the cache key.
---
 lisp/tab-bar.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 0e8430fb38..19451b4e72 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1062,7 +1062,8 @@ tab bar might wrap to the second line when it shouldn't.")
                                  (nth 1 tab-bar-auto-width-max)))))
       (dolist (item tabs)
         (setf (nth 2 item)
-              (with-memoization (gethash (cons width (nth 2 item))
+              (with-memoization (gethash (list (selected-frame)
+                                               width (nth 2 item))
                                          tab-bar--fixed-width-hash)
                 (let* ((name (nth 2 item))
                        (len (length name))



reply via email to

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