Ensure valid end/beginning lines in message-mark-inserted-region
* lisp/gnus/message.el (message-mark-inserted-region): Ensure there's a newline before inserting the end line (bug#51324).
This commit is contained in:
parent
9b46150ab0
commit
1f6cdeb12c
1 changed files with 2 additions and 0 deletions
|
@ -2395,6 +2395,8 @@ If VERBATIM, use slrn style verbatim marks (\"#v+\" and \"#v-\")."
|
|||
(save-excursion
|
||||
;; add to the end of the region first, otherwise end would be invalid
|
||||
(goto-char end)
|
||||
(unless (bolp)
|
||||
(insert "\n"))
|
||||
(insert (if verbatim "#v-\n" message-mark-insert-end))
|
||||
(goto-char beg)
|
||||
(insert (if verbatim "#v+\n" message-mark-insert-begin))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue