branch: externals/valign
commit 666e7d7c785f03a1e0fa6ee0d592bd6f558590eb
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>

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

diff --git a/valign.el b/valign.el
index 788a32a..386962c 100644
--- a/valign.el
+++ b/valign.el
@@ -419,8 +419,8 @@ Assumes point is on a table."
 Assumes point is on a table."
   (end-of-line)
   (if (not (search-forward "\n\n" nil t))
-      (goto-char (point-max))
-    (skip-chars-backward "\n")))
+      (goto-char (point-max)))
+  (skip-chars-backward "\n"))
 
 (defun valign--put-overlay (beg end &rest props)
   "Put overlay between BEG and END.

Reply via email to