Skip to content

Commit a7edff2

Browse files
author
DogLooksGood
committed
Fix a lookup-key usage
1 parent 57efe6b commit a7edff2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meow-keypad.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,9 @@ x f' to execute `C-x C-f' or `C-x f' when `C-x C-f' is not bound."
445445
(origin-cmd (cl-some (lambda (m)
446446
(when (and (not (eq m meow-normal-state-keymap))
447447
(not (eq m meow-motion-state-keymap)))
448-
(lookup-key m key)))
448+
(let ((cmd (lookup-key m (kbd key))))
449+
(when (commandp cmd)
450+
cmd))))
449451
(current-active-maps)))
450452
(remapped-cmd (command-remapping origin-cmd))
451453
(cmd-to-call (if (member remapped-cmd '(undefined nil))

0 commit comments

Comments
 (0)