From 1e7b217e9d82a34f4384d33b19bcab97ec159087 Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Tue, 16 Feb 2021 10:36:00 +0100 Subject: Don't insert extra newline in message body When inserting the diff into the message body a newline is already included. Previously it would insert an additional newline at the beginning of the body. This removes the extra newline Before: --text follows this line-- body starts here After: --text follows this line-- body starts here * git-email.el (git-email--compose-email): Don't go forward a character. Signed-off-by: Xinglu Chen --- git-email.el | 1 - 1 file changed, 1 deletion(-) diff --git a/git-email.el b/git-email.el index 10f6395..e399409 100644 --- a/git-email.el +++ b/git-email.el @@ -321,7 +321,6 @@ them into the message buffer." "<#part \\(encrypt\\|sign\\)=.*mime>" nil t) (re-search-forward "--text follows this line--" nil t)))) - (goto-char (+ body 1)) (save-excursion (insert (git-email--fontify-using-faces (git-email--fontify-diff diff))))) -- cgit v1.2.3