autoload/popups: consider non-evil context for doom/popup-close-maybe

This commit is contained in:
Henrik Lissner 2017-02-03 08:05:13 -05:00
parent bb95a02480
commit 1179a22742

View file

@ -95,7 +95,9 @@ possible rules."
"Close the current popup *if* its window doesn't have a noesc parameter."
(interactive)
(if (window-parameter (selected-window) 'noesc)
(call-interactively 'evil-force-normal-state)
(call-interactively (if (featurep 'evil)
'evil-force-normal-state
'keyboard-escape-quit))
(doom/popup-close)))
(defun doom--popup-data (window)