From: Juri Linkov Date: Wed, 9 Nov 2022 08:39:51 +0000 (+0200) Subject: * lisp/tab-bar.el (tab-bar-auto-width): Use 'frame-inner-width'. X-Git-Tag: emacs-29.0.90~1616^2~236 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3820e75d2fe1b5c446d83b1abbde8f544201de35;p=emacs.git * lisp/tab-bar.el (tab-bar-auto-width): Use 'frame-inner-width'. --- 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)))