1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-27 19:31:38 +00:00

(fill-region): Avoid error on reaching end of buffer.

This commit is contained in:
Richard M. Stallman 1995-04-07 23:44:45 +00:00
parent 8cf19007fd
commit 42457d75fc

View File

@ -402,7 +402,7 @@ space does not end a sentence, so don't break a line there."
(not (= ?\n (char-after end)))
(not (= end (point-max))))
(goto-char (1+ end)))
(setq end (min (point-max) (1+ end)))
(setq end (if end (min (point-max) (1+ end)) (point-max)))
(goto-char initial))
(forward-paragraph 1)
(setq end (point))