aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-diff.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2017-11-04 14:27:00 +0100
committerJonas Bernoulli <jonas@bernoul.li>2017-11-05 21:33:57 +0100
commit0fefe6719b5f7541dbcc45458555b726f2fea237 (patch)
tree9ed80d7f2f530445e9ce9c42ec85cfeca3d2b523 /lisp/magit-diff.el
parente4bd2600669342a957981c15a54afd59622de0ea (diff)
magit-diff-while-committing: stay in message buffer
Diffstat (limited to 'lisp/magit-diff.el')
-rw-r--r--lisp/magit-diff.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index 90b698c..09b974a 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -859,7 +859,8 @@ While amending, invoking the command again toggles between
showing just the new changes or all the changes that will
be committed."
(interactive (list (car (magit-diff-arguments))))
- (let ((toplevel (magit-toplevel))
+ (let ((magit-display-buffer-noselect t)
+ (toplevel (magit-toplevel))
(diff-buf (magit-mode-get-buffer 'magit-diff-mode)))
(if (magit-commit-message-buffer)
(if (and (or ;; most likely an explicit amend