summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/tabulated-list.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-01-09 12:38:26 +0200
committerEli Zaretskii <eliz@gnu.org>2022-01-09 12:38:26 +0200
commite28849eb0200eb55ca263b75ae90bdc740dc0666 (patch)
tree0f9d556ae1bef363444a288936ca6ed1c80e92ae /lisp/emacs-lisp/tabulated-list.el
parent4c724af1e3e3f4bdb013a436bc1afa0aa102ee4e (diff)
downloademacs-e28849eb0200eb55ca263b75ae90bdc740dc0666.tar.gz
Revert "Fix alignment on font size change in tabulated-list-mode"
This reverts commit 2767c89db729a6106146d0aeff76678c64d4fc53. That change caused a regression in a much more important use case, see bug#53133.
Diffstat (limited to 'lisp/emacs-lisp/tabulated-list.el')
-rw-r--r--lisp/emacs-lisp/tabulated-list.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el
index 0bf98952458..3d944bf5e16 100644
--- a/lisp/emacs-lisp/tabulated-list.el
+++ b/lisp/emacs-lisp/tabulated-list.el
@@ -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)))