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:
parent
8cf19007fd
commit
42457d75fc
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user