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

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

[elpa] externals/idlwave c832c9bead 223/360: Take care for skipping subs


From: ELPA Syncer
Subject: [elpa] externals/idlwave c832c9bead 223/360: Take care for skipping substatements at end of buffer.
Date: Sun, 28 Apr 2024 00:59:26 -0400 (EDT)

branch: externals/idlwave
commit c832c9bead6a604d63f28227a5c993ed0c333f67
Author: JD Smith <jdtsmith@gmail.com>
Commit: JD Smith <jdtsmith@gmail.com>

    Take care for skipping substatements at end of buffer.
---
 idlwave.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/idlwave.el b/idlwave.el
index db155c3818..ae4d0c0816 100644
--- a/idlwave.el
+++ b/idlwave.el
@@ -2714,9 +2714,10 @@ substatement."
     ;; If a continuation line starts here, move to next line
     (when (looking-at "[ \t]*\\$\\([ \t]*\\(;\\|$\\)\\)")
       (beginning-of-line 2))
-    (while (or
-           (looking-at idlwave-comment-line-start-skip) ;comment only
-           (looking-at "[ \t]*$")) ; blank
+    (while 
+       (and (not (eobp))
+            (or (looking-at idlwave-comment-line-start-skip) ;comment only
+                (looking-at "[ \t]*$"))) ; blank
       (beginning-of-line 2))
     (point)))
 



reply via email to

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