branch: externals/valign
commit 16656b56d8514c026e8c076cfa3b168cdf3c0c61
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>

    * 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