aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-02-16 12:02:11 +0100
committerXinglu Chen <public@yoctocell.xyz>2021-02-16 12:18:28 +0100
commit9631303159b2520bc36edaf64241af02f9a26715 (patch)
tree22ff85a31c8e44fc1fdac3e61f216f702faa4881
parentb28c2e70bef8f2d5df9889438fa000203d983390 (diff)
Use mail-header-separator instead of string
Applied manually from <https://lists.sr.ht/~yoctocell/git-email-devel/%3Ce281e4b3513b5629de0108176c660aa1714b5604.1613471364.git.info%40protesilaos.com%3E> Signed-off-by: Xinglu Chen <public@yoctocell.xyz>
-rw-r--r--git-email.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-email.el b/git-email.el
index b84fd25..6276181 100644
--- a/git-email.el
+++ b/git-email.el
@@ -322,7 +322,7 @@ them into the message buffer."
(let ((body (or (re-search-forward
"<#part \\(encrypt\\|sign\\)=.*mime>"
nil t)
- (re-search-forward "--text follows this line--" nil t))))
+ (re-search-forward (regexp-quote mail-header-separator) nil t))))
(save-excursion
(insert (git-email--fontify-using-faces
(git-email--fontify-diff diff)))))