branch: elpa/git-commit
commit 28bcd29db547ab73002fb81b05579e4a2e90f048
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit--shell-command: Use magit-with-editor
    
    Closes #5107.
---
 lisp/magit.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/magit.el b/lisp/magit.el
index 96ccff0742..8f1bfe269c 100644
--- a/lisp/magit.el
+++ b/lisp/magit.el
@@ -483,8 +483,9 @@ is run in the top-level directory of the current working 
tree."
   (let ((default-directory (or directory default-directory)))
     (with-environment-variables (("GIT_PAGER" "cat"))
       (magit--with-connection-local-variables
-        (magit-start-process shell-file-name nil
-                             shell-command-switch command))))
+        (magit-with-editor
+          (magit-start-process shell-file-name nil
+                               shell-command-switch command)))))
   (magit-process-buffer))
 
 (defun magit-read-shell-command (&optional toplevel initial-input)

Reply via email to