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

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

[elpa] externals/valign 82566b3 080/198: Fix tab calculation


From: Stefan Monnier
Subject: [elpa] externals/valign 82566b3 080/198: Fix tab calculation
Date: Tue, 1 Dec 2020 18:19:21 -0500 (EST)

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

    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

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