From 60219b1e4ecf1568718eb2c39081f3b410a6756f Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 9 Nov 2022 19:29:37 +0200 Subject: [PATCH] * 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 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)) -- 2.39.5