Magit: Rely on popup backup when reverting popups (#446)

This commit is contained in:
James Nguyen 2021-01-30 00:33:15 -08:00
parent 2bbaa52d22
commit e6824e2ad2
1 changed files with 1 additions and 7 deletions

View File

@ -610,13 +610,7 @@ evil-collection-magit affects.")
(defun evil-collection-magit-revert-popups ()
"Revert popup keys changed by evil-collection-magit."
(put 'magit-dispatch 'transient--layout evil-collection-magit-dispatch-popup-backup)
(when evil-collection-magit-popup-keys-changed
(dolist (change evil-collection-magit-popup-changes)
(evil-collection-magit-change-popup-key
(nth 0 change) (nth 2 change) (nth 1 change)))
(with-eval-after-load 'forge
(transient-suffix-put 'magit-dispatch "@" :key "'"))
(setq evil-collection-magit-popup-keys-changed nil)))
(setq evil-collection-magit-popup-keys-changed nil))
;;;###autoload
(defun evil-collection-magit-init ()