mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 13:57:36 +00:00
(fill-region-as-paragraph): Use save-excursion instead of relying on
forward-line to bring us where we started.
This commit is contained in:
parent
4599773d96
commit
79424eea3d
1 changed files with 3 additions and 3 deletions
|
|
@ -660,9 +660,9 @@ space does not end a sentence, so don't break a line there."
|
|||
(progn
|
||||
(delete-horizontal-space)
|
||||
(justify-current-line justify t t))
|
||||
(forward-line -1)
|
||||
(justify-current-line justify nil t)
|
||||
(forward-line 1))))))
|
||||
(save-excursion
|
||||
(forward-line -1)
|
||||
(justify-current-line justify nil t)))))))
|
||||
;; Leave point after final newline.
|
||||
(goto-char to))
|
||||
(unless (eobp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue