branch: externals/valign
commit fc591d89856d65170e60523494697aa5b89b09df
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>
* 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