* lisp/tab-bar.el (tab-bar-auto-width): Add selected-frame to the cache key.
authorJuri Linkov <juri@linkov.net>
Wed, 9 Nov 2022 17:29:37 +0000 (19:29 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 9 Nov 2022 17:29:37 +0000 (19:29 +0200)
lisp/tab-bar.el

index 0e8430fb38e21ea4bd8955be216db7e69789d60e..19451b4e72b5c91114e605eb29ec4f7eb91070e9 100644 (file)
@@ -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))