projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cbc0fd
)
* lisp/tab-bar.el (tab-bar-auto-width): Use 'frame-inner-width'.
author
Juri Linkov
<juri@linkov.net>
Wed, 9 Nov 2022 08:39:51 +0000
(10:39 +0200)
committer
Juri Linkov
<juri@linkov.net>
Wed, 9 Nov 2022 08:39:51 +0000
(10:39 +0200)
lisp/tab-bar.el
patch
|
blob
|
history
diff --git
a/lisp/tab-bar.el
b/lisp/tab-bar.el
index 84e1c432ff19fcdb0da7e914965a307d7b9f187d..0e8430fb38e21ea4bd8955be216db7e69789d60e 100644
(file)
--- 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)))