branch: elpa/magit
commit fbcd6d67a637f03f8b48291fa7fe2c78488ca9d3
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    git-commit-setup: Cosmetics
---
 lisp/git-commit.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/git-commit.el b/lisp/git-commit.el
index c063fb19f66..308e9c7513b 100644
--- a/lisp/git-commit.el
+++ b/lisp/git-commit.el
@@ -629,10 +629,8 @@ Used as the local value of `header-line-format', in buffer 
using
     (with-editor-mode 1))
   (add-hook 'with-editor-finish-query-functions
             #'git-commit-finish-query-functions nil t)
-  (add-hook 'with-editor-pre-finish-hook
-            #'git-commit-save-message nil t)
-  (add-hook 'with-editor-pre-cancel-hook
-            #'git-commit-save-message nil t)
+  (add-hook 'with-editor-pre-finish-hook #'git-commit-save-message nil t)
+  (add-hook 'with-editor-pre-cancel-hook #'git-commit-save-message nil t)
   (when (fboundp 'magit-commit--reset-command)
     (add-hook 'with-editor-post-finish-hook #'magit-commit--reset-command)
     (add-hook 'with-editor-post-cancel-hook #'magit-commit--reset-command))

Reply via email to