diff options
| author | Eli Zaretskii | 2022-01-09 12:38:26 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-01-09 12:38:26 +0200 |
| commit | e28849eb0200eb55ca263b75ae90bdc740dc0666 (patch) | |
| tree | 0f9d556ae1bef363444a288936ca6ed1c80e92ae | |
| parent | 4c724af1e3e3f4bdb013a436bc1afa0aa102ee4e (diff) | |
| download | emacs-e28849eb0200eb55ca263b75ae90bdc740dc0666.tar.gz emacs-e28849eb0200eb55ca263b75ae90bdc740dc0666.zip | |
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.
| -rw-r--r-- | lisp/emacs-lisp/tabulated-list.el | 3 |
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." | |||
| 581 | (when not-last-col | 581 | (when not-last-col |
| 582 | (when (> pad-right 0) (insert (make-string pad-right ?\s))) | 582 | (when (> pad-right 0) (insert (make-string pad-right ?\s))) |
| 583 | (insert (propertize | 583 | (insert (propertize |
| 584 | ;; We need at least one space to align correctly. | 584 | (make-string (- width (min width label-width)) ?\s) |
| 585 | (make-string (- width (min 1 width label-width)) ?\s) | ||
| 586 | 'display `(space :align-to ,next-x)))) | 585 | 'display `(space :align-to ,next-x)))) |
| 587 | (put-text-property opoint (point) 'tabulated-list-column-name name) | 586 | (put-text-property opoint (point) 'tabulated-list-column-name name) |
| 588 | next-x))) | 587 | next-x))) |