mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(mail-hist-current-header-name): Don't make
off-by-one-error when determining if in message body.
This commit is contained in:
parent
0ece9ef6bf
commit
91245cb042
@ -105,7 +105,7 @@ Oldest elements are dumped first."
|
|||||||
"Get name of mail header point is currently in, without the colon.
|
"Get name of mail header point is currently in, without the colon.
|
||||||
Returns nil if not in a header, implying that point is in the body of
|
Returns nil if not in a header, implying that point is in the body of
|
||||||
the message."
|
the message."
|
||||||
(if (> (point) (mail-text-start))
|
(if (>= (point) (mail-text-start))
|
||||||
nil ; then we are in the body of the message
|
nil ; then we are in the body of the message
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(let* ((body-start
|
(let* ((body-start
|
||||||
|
Loading…
Reference in New Issue
Block a user