branch: externals/idlwave
commit c832c9bead6a604d63f28227a5c993ed0c333f67
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>
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)))