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

    Fix tab calculation
    
    * valign.el (valign-table): Fix right aligned cell’s width
    calculation, we changed the definition of cell-width in a previous
    commit, now we need to reflect that change here.
---
 valign.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/valign.el b/valign.el
index 7caa06d..1d339fc 100644
--- a/valign.el
+++ b/valign.el
@@ -599,10 +599,8 @@ for the former, and 'multi-column for the latter."
                              ;; 3.2) Align a right-aligned cell.
                              ('right (setq tab-width
                                            (- col-width cell-width))
-                                     (setq tab-start (point))
-                                     (valign--skip-space-forward)
                                      (valign--put-text-property
-                                      tab-start (point)
+                                      (point) (1+ (point))
                                       (+ pos tab-width))))))
                   ;; Update ‘pos’ for the next cell.
                   (setq pos (+ pos col-width bar-width ssw))

Reply via email to