From: Juri Linkov Date: Wed, 9 Nov 2022 17:29:37 +0000 (+0200) Subject: * lisp/tab-bar.el (tab-bar-auto-width): Add selected-frame to the cache key. X-Git-Tag: emacs-29.0.90~1616^2~225 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=60219b1e4ecf1568718eb2c39081f3b410a6756f;p=emacs.git * lisp/tab-bar.el (tab-bar-auto-width): Add selected-frame to the cache key. --- diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 0e8430fb38e..19451b4e72b 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))