emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 e28849eb02: Revert "Fix alignment on font size change in tabula


From: Eli Zaretskii
Subject: emacs-28 e28849eb02: Revert "Fix alignment on font size change in tabulated-list-mode"
Date: Sun, 9 Jan 2022 05:39:34 -0500 (EST)

branch: emacs-28
commit e28849eb0200eb55ca263b75ae90bdc740dc0666
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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.
---
 lisp/emacs-lisp/tabulated-list.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/tabulated-list.el 
b/lisp/emacs-lisp/tabulated-list.el
index 0bf9895245..3d944bf5e1 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]