* lisp/tab-bar.el: Fix the recent removal of substring as a gv-place.
(tab-bar-auto-width): Copy more logic from 'cl--set-substring' (bug#60297).
This commit is contained in:
parent
1748361c68
commit
4dc5bee98d
1 changed files with 2 additions and 1 deletions
|
@ -1116,7 +1116,8 @@ tab bar might wrap to the second line when it shouldn't.")
|
|||
(del-pos2 (if close-p -1 nil)))
|
||||
(while continue
|
||||
(setq name (concat (substring name 0 del-pos1)
|
||||
(substring name del-pos2)))
|
||||
(and del-pos2
|
||||
(substring name del-pos2))))
|
||||
(setq curr-width (string-pixel-width name))
|
||||
(if (and (> curr-width width)
|
||||
(< curr-width prev-width))
|
||||
|
|
Loading…
Add table
Reference in a new issue