Skip to content

Commit

Permalink
make meow-minibuffer-quit compatible with(setq icomplete-in-buffer t) (
Browse files Browse the repository at this point in the history
  • Loading branch information
jixiuf authored Oct 16, 2024
1 parent 2f6fac3 commit b312d90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions meow-command.el
Original file line number Diff line number Diff line change
Expand Up @@ -1546,9 +1546,11 @@ Argument ARG if not nil, switching in a new window."
(defun meow-minibuffer-quit ()
"Keyboard escape quit in minibuffer."
(interactive)
(if (fboundp 'minibuffer-keyboard-quit)
(call-interactively #'minibuffer-keyboard-quit)
(call-interactively #'abort-recursive-edit)))
(if (minibufferp)
(if (fboundp 'minibuffer-keyboard-quit)
(call-interactively #'minibuffer-keyboard-quit)
(call-interactively #'abort-recursive-edit))
(call-interactively #'keyboard-quit)))

(defun meow-escape-or-normal-modal ()
"Keyboard escape quit or switch to normal state."
Expand Down

0 comments on commit b312d90

Please sign in to comment.