From 3820e75d2fe1b5c446d83b1abbde8f544201de35 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 9 Nov 2022 10:39:51 +0200 Subject: [PATCH] * lisp/tab-bar.el (tab-bar-auto-width): Use 'frame-inner-width'. --- lisp/tab-bar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 84e1c432ff1..0e8430fb38e 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1048,7 +1048,7 @@ tab bar might wrap to the second line when it shouldn't.") (unless (eq (nth 0 item) 'align-right) (setq non-tabs (concat non-tabs (nth 2 item))))))) (when tabs - (setq width (/ (- (frame-pixel-width) + (setq width (/ (- (frame-inner-width) (string-pixel-width (propertize non-tabs 'face 'tab-bar))) (length tabs))) -- 2.39.2