From d97e0ff4afa67bd19443245d4f663de29b043a6b Mon Sep 17 00:00:00 2001 From: condy Date: Thu, 8 Jul 2021 02:27:39 +0800 Subject: [PATCH] magit: properly bind escape key --- modes/magit/evil-collection-magit.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modes/magit/evil-collection-magit.el b/modes/magit/evil-collection-magit.el index 48fa3034..ba3bd194 100644 --- a/modes/magit/evil-collection-magit.el +++ b/modes/magit/evil-collection-magit.el @@ -368,7 +368,7 @@ moment.") ((visual) magit-mode-map "y" magit-copy-section-value)) `((,states magit-mode-map "v" set-mark-command) (,states magit-mode-map "V" set-mark-command) - (,states magit-mode-map "" evil-collection-magit-maybe-deactivate-mark))) + (,states magit-mode-map ,(kbd "") evil-collection-magit-maybe-deactivate-mark))) (when evil-collection-magit-use-z-for-folds `((,states magit-mode-map "z") @@ -510,7 +510,7 @@ denotes the original magit key for this command.") (dolist (cmd evil-collection-magit-rebase-commands-w-descriptions) (insert (format "%s %-8s %s\n" - comment-start + comment-start (if (and (car cmd) (eq (nth 1 cmd) (lookup-key aux-map (kbd (car cmd)))))