Fix 'apropos-compact-layout'
* lisp/textmodes/fill.el (fill-region-as-paragraph): Fix filling paragraphs that end at EOB without a newline. (Bug#50974)
This commit is contained in:
parent
62d6cecfcd
commit
b6f6b593c6
1 changed files with 1 additions and 1 deletions
|
@ -768,7 +768,7 @@ space does not end a sentence, so don't break a line there."
|
||||||
(setq first nil
|
(setq first nil
|
||||||
linebeg (+ (point) (length actual-fill-prefix))))
|
linebeg (+ (point) (length actual-fill-prefix))))
|
||||||
(move-to-column (current-fill-column))
|
(move-to-column (current-fill-column))
|
||||||
(if (when (< (point) to)
|
(if (when (and (< (point) to) (< linebeg to))
|
||||||
;; Find the position where we'll break the line.
|
;; Find the position where we'll break the line.
|
||||||
;; Use an immediately following space, if any.
|
;; Use an immediately following space, if any.
|
||||||
;; However, note that `move-to-column' may overshoot
|
;; However, note that `move-to-column' may overshoot
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue