Skip to content

Commit

Permalink
meow--execute-kbd-macro: set the executed command as this-command (#684)
Browse files Browse the repository at this point in the history
meow-selection-command-fallback would benefit when the keybinding is a macro
like
  (meow-normal-define-key
   '("z" . "C-c z"))

  (global-set-key (kbd C-c z) 'meow-pop-selection)
  • Loading branch information
jixiuf authored Dec 2, 2024
1 parent 809b059 commit 1f8fcca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meow-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
(when-let* ((ret (key-binding (read-kbd-macro kbd-macro))))
(cond
((commandp ret)
(setq this-command ret)
(call-interactively ret))

((and (not meow-use-keypad-when-execute-kbd) (keymapp ret))
Expand Down

0 comments on commit 1f8fcca

Please sign in to comment.