]> git.eshelyaron.com Git - emacs.git/commitdiff
(forward-paragraph): Fix end-of-buffer bug.
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 Jan 1995 04:02:06 +0000 (04:02 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 Jan 1995 04:02:06 +0000 (04:02 +0000)
lisp/textmodes/paragraphs.el

index c85b15249f3759887e006b5c35ecd711c588b3e8..0edfe88c876eb31dcaf89a86c9a214af072572c7 100644 (file)
@@ -142,8 +142,8 @@ to which the end of the previous line belongs, or the end of the buffer."
                      (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))