Skip to content

Commit

Permalink
Fix command lookup in keypad
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Feb 1, 2025
1 parent 33414b9 commit 0314cd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meow-keypad.el
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ x f' to execute `C-x C-f' or `C-x f' when `C-x C-f' is not bound."
(eq meow--keypad-previous-state meow-keypad-leader-transparent))
(let* ((key (meow--parse-input-event last-input-event))
(origin-cmd (cl-some (lambda (m)
(lookup-key m key))
(when (and (not (eq m meow-normal-state-keymap))
(not (eq m meow-motion-state-keymap)))
(lookup-key m key)))
(current-active-maps)))
(remapped-cmd (command-remapping origin-cmd))
(cmd-to-call (if (member remapped-cmd '(undefined nil))
Expand Down

0 comments on commit 0314cd1

Please sign in to comment.