branch: externals/valign
commit 8c05580dc1e66cb598bd481fa7f69fea399f7176
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>
* valign.el (valign-table): Fix separator alignment.
---
valign.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/valign.el b/valign.el
index 1162c30..d24a83a 100644
--- a/valign.el
+++ b/valign.el
@@ -410,14 +410,14 @@ for the former, and 'multi-column for the latter."
('multi-column
(let ((p (point))
(col-idx 0))
- (while (search-forward "+" end t)
+ (while (search-forward "+" (line-end-position) t)
(valign--separator-row-add-overlay
p (1- (point))
(or (nth col-idx (reverse rev-list)) 0))
(cl-incf col-idx)
(setq p (point)))
;; Last column
- (when (search-forward "|" end t)
+ (when (search-forward "|" (line-end-position) t)
(valign--separator-row-add-overlay
p (1- (point))
(or (nth col-idx (reverse rev-list)) 0)))))))))