diff options
-rw-r--r-- | git-email.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/git-email.el b/git-email.el index 7fbce16..3db1ca3 100644 --- a/git-email.el +++ b/git-email.el @@ -319,9 +319,10 @@ them into the message buffer." (seq-filter #'git-email--remove-subject used-headers)) ;; Insert diff at the beginning of the body (goto-char (point-min)) - (or (re-search-forward - "^<#part \\(encrypt\\|sign\\)=.*mime>$" nil t) - (re-search-forward (regexp-quote mail-header-separator) nil t) + (let ((body (or (re-search-forward + "^<#part \\(encrypt\\|sign\\)=.*mime>$" + 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))))) |