Skip to content

Commit

Permalink
Fix meow--keypad-try-execute (#688)
Browse files Browse the repository at this point in the history
(commandp cmd) returns t if cmd is an autoloaded keymap.
  • Loading branch information
fuzy112 authored Dec 4, 2024
1 parent 504fe65 commit c82a324
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meow-keypad.el
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ try replacing the last modifier and try again."
(let* ((key-str (meow--keypad-format-keys nil))
(cmd (meow--keypad-lookup-key (kbd key-str))))
(cond
((keymapp cmd)
(when meow-keypad-message (meow--keypad-show-message))
(meow--keypad-display-message)
nil)
((commandp cmd t)
(setq current-prefix-arg meow--prefix-arg
meow--prefix-arg nil)
Expand All @@ -430,10 +434,6 @@ try replacing the last modifier and try again."
this-command cmd)
(meow--keypad-execute cmd)
t)))
((keymapp cmd)
(when meow-keypad-message (meow--keypad-show-message))
(meow--keypad-display-message)
nil)
((equal 'control (caar meow--keypad-keys))
(setcar meow--keypad-keys (cons 'literal (cdar meow--keypad-keys)))
(meow--keypad-try-execute))
Expand Down

0 comments on commit c82a324

Please sign in to comment.