emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/valign 16656b5 075/198: * valign.el (valign--calculate-


From: Stefan Monnier
Subject: [elpa] externals/valign 16656b5 075/198: * valign.el (valign--calculate-table-info): Record empty columns.
Date: Tue, 1 Dec 2020 18:19:20 -0500 (EST)

branch: externals/valign
commit 16656b56d8514c026e8c076cfa3b168cdf3c0c61
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    * valign.el (valign--calculate-table-info): Record empty columns.
---
 valign.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/valign.el b/valign.el
index 12d3135..c090ef1 100644
--- a/valign.el
+++ b/valign.el
@@ -277,7 +277,9 @@ Start from point, stop at LIMIT."
         (unless (valign--separator-p)
           (let ((oldmax (alist-get column-idx column-width-alist))
                 (cell-width (valign--cell-width)))
-            (if (> cell-width (or oldmax 0))
+            ;; Why “=”: if cell-width is 0 and the whole column is 0,
+            ;; still record it.
+            (if (>= cell-width (or oldmax 0))
                 (setf (alist-get column-idx column-width-alist)
                       cell-width))))
         ;; Calculate the alignment if we are on the separator row



reply via email to

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