projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f60913
)
* lisp/tab-bar.el: Fix the close button with auto-width (bug#66678).
author
Petteri Hintsanen
<petterih@iki.fi>
Sun, 22 Oct 2023 17:39:16 +0000
(20:39 +0300)
committer
Juri Linkov
<juri@linkov.net>
Sun, 22 Oct 2023 17:39:16 +0000
(20:39 +0300)
(tab-bar-auto-width): Take into account the length of tab-bar-close-button
more than one character: " x".
Don't merge to master.
lisp/tab-bar.el
patch
|
blob
|
history
diff --git
a/lisp/tab-bar.el
b/lisp/tab-bar.el
index 17fc4b346cbd35dbf1594498a01e5b4e7df465a9..7a493ddde0d34fd5ec571477e025cd7bd3d7ae64 100644
(file)
--- a/
lisp/tab-bar.el
+++ b/
lisp/tab-bar.el
@@
-1091,7
+1091,9
@@
tab bar might wrap to the second line when it shouldn't.")
((< prev-width width)
(let* ((space (apply 'propertize " "
(text-properties-at 0 name)))
- (ins-pos (- len (if close-p 1 0)))
+ (ins-pos (- len (if close-p
+ (length tab-bar-close-button)
+ 0)))
(prev-name name))
(while continue
(setf (substring name ins-pos ins-pos) space)