autoload/popups: consider non-evil context for doom/popup-close-maybe
This commit is contained in:
parent
bb95a02480
commit
1179a22742
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue