Properly bind escape in magit-mode-map

Without using `kbd', each key in the string "<escape>" is interpreted as a
prefix key.
This commit is contained in:
Nicholas Vollmer 2021-06-27 21:39:03 -04:00
parent 84e5531e26
commit c5cd1bacf6
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ moment.")
(,states magit-mode-map ,(kbd "S-DEL") magit-diff-show-or-scroll-down "DEL")
((,evil-collection-magit-state) magit-mode-map ,(kbd evil-toggle-key) evil-emacs-state)
((,evil-collection-magit-state) magit-mode-map "<escape>" magit-mode-bury-buffer))
((,evil-collection-magit-state) magit-mode-map ,(kbd "<escape>") magit-mode-bury-buffer))
(if (eq evil-search-module 'evil-search)
`((,states magit-mode-map "/" evil-ex-search-forward)