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

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

[elpa] externals/valign fc591d8 129/198: * valign.el (valign-table-1): C


From: Stefan Monnier
Subject: [elpa] externals/valign fc591d8 129/198: * valign.el (valign-table-1): Clear overlay before measuring table.
Date: Tue, 1 Dec 2020 18:19:32 -0500 (EST)

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

    * valign.el (valign-table-1): Clear overlay before measuring table.
---
 valign.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/valign.el b/valign.el
index f2e3242..d31cbea 100644
--- a/valign.el
+++ b/valign.el
@@ -455,12 +455,13 @@ You need to restart valign mode for this setting to take 
effect."
                       (valign--pixel-width-from-to
                        (match-beginning 0) (match-end 0))))
          (table-end (save-excursion (valign--end-of-table) (point)))
+         ;; Very hacky, but..
+         (_ (valign--clean-text-property (point) table-end))
          (column-width-list (valign--calculate-cell-width table-end))
          (column-alignment-list (valign--calculate-alignment
                                  (valign--guess-table-type) table-end))
          row-idx column-idx column-start)
     (ignore row-idx)
-    (valign--clean-text-property (point) table-end)
 
     ;; Start alignment.
     (valign--do-row row-idx table-end



reply via email to

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