diff options
author | Xinglu Chen <public@yoctocell.xyz> | 2021-02-16 10:36:00 +0100 |
---|---|---|
committer | Xinglu Chen <public@yoctocell.xyz> | 2021-02-16 10:36:00 +0100 |
commit | 1e7b217e9d82a34f4384d33b19bcab97ec159087 (patch) | |
tree | 6195a9ef4af687a6868d70cf9e8b5f71b8f9178a | |
parent | f168d8b206a90c6d76cfc062a781228d53fbeb84 (diff) |
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 <public@yoctocell.xyz>
-rw-r--r-- | git-email.el | 1 |
1 files changed, 0 insertions, 1 deletions
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))))) |