1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

Revert "Fix alignment on font size change in tabulated-list-mode"

This reverts commit 2767c89db7.

That change caused a regression in a much more important use
case, see bug#53133.
This commit is contained in:
Eli Zaretskii 2022-01-09 12:38:26 +02:00
parent 4c724af1e3
commit e28849eb02

View file

@ -581,8 +581,7 @@ Return the column number after insertion."
(when not-last-col
(when (> pad-right 0) (insert (make-string pad-right ?\s)))
(insert (propertize
;; We need at least one space to align correctly.
(make-string (- width (min 1 width label-width)) ?\s)
(make-string (- width (min width label-width)) ?\s)
'display `(space :align-to ,next-x))))
(put-text-property opoint (point) 'tabulated-list-column-name name)
next-x)))