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

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

[elpa] externals/valign cc3e068 053/198: * valign.el (valign--end-of-tab


From: Stefan Monnier
Subject: [elpa] externals/valign cc3e068 053/198: * valign.el (valign--end-of-table): Change re.
Date: Tue, 1 Dec 2020 18:19:15 -0500 (EST)

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

    * valign.el (valign--end-of-table): Change re.
---
 valign.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/valign.el b/valign.el
index 7ead41e..0bc50d9 100644
--- a/valign.el
+++ b/valign.el
@@ -312,8 +312,8 @@ Assumes point is on a table.  Return nil if failed, point
 otherwise."
   (beginning-of-line)
   (if (not (looking-at "[ \t]*|")) nil
-    (while (re-search-forward "|[^|]*$" nil t))
-    (line-end-position)))
+    (while (re-search-forward "|[^|\n]*$" nil t))
+    (point)))
 
 (defun valign--put-text-property (beg end xpos)
   "Put text property on text from BEG to END.



reply via email to

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