changeset 10464:765fe4b8deaf

(forward-paragraph): Fix end-of-buffer bug.
author Richard M. Stallman <rms@gnu.org>
date Thu, 19 Jan 1995 04:02:06 +0000
parents 4f1637fdc916
children 00e1546cc687
files lisp/textmodes/paragraphs.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/paragraphs.el	Wed Jan 18 23:23:58 1995 +0000
+++ b/lisp/textmodes/paragraphs.el	Thu Jan 19 04:02:06 1995 +0000
@@ -142,8 +142,8 @@
 		      (not (looking-at-hard paragraph-separate))
 		      (looking-at fill-prefix-regexp))
 	    (forward-line 1))
-	(while (and (not (eobp))
-		    (re-search-forward paragraph-start nil 1)
+	(while (and (re-search-forward paragraph-start nil 1)
+		    (not (eobp))
 		    use-hard-newlines
 		    (null (get-text-property (1- (match-beginning 0)) 'hard)))
 	  (forward-char 1))