Skip to content

Commit

Permalink
Merge pull request magit#1284 from vanicat/t/this-command-in-magit-ke…
Browse files Browse the repository at this point in the history
…y-mode

Set this-command in magit-key-mode-command
  • Loading branch information
tarsius committed Mar 19, 2014
2 parents e9febe7 + 670599c commit c76ef18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magit-key-mode.el
Expand Up @@ -505,7 +505,8 @@ Do not customize this (used in the `magit-key-mode' implementation).")
(set-window-configuration magit-pre-key-mode-window-conf)
(kill-buffer magit-key-mode-last-buffer)
(when func
(call-interactively func))))
(setq this-command func)
(call-interactively this-command))))

(defun magit-key-mode-add-argument (for-group arg-name input-func)
(let ((input (funcall input-func (concat arg-name ": "))))
Expand Down

0 comments on commit c76ef18

Please sign in to comment.