Skip to content

Commit

Permalink
Use meow--keypad-execute for calling self-insert-command
Browse files Browse the repository at this point in the history
By using meow--keypad-execute it allows for running
self-insert-command on beacons.

Due to self-insert-command not placing a undo-boundry before this
point, explicitly place a boundry before executing the command.
  • Loading branch information
Haxxflaxx committed Dec 18, 2024
1 parent 239663a commit 7e15a6c
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 @@ -441,7 +441,9 @@ try replacing the last modifier and try again."
(t
(setq meow--prefix-arg nil)
(if meow-keypad-self-insert-undefined
(call-interactively 'self-insert-command)
(progn
(undo-boundary)
(meow--keypad-execute 'self-insert-command))
(message "%s is undefined" (meow--keypad-format-keys nil)))
(meow--keypad-quit)
t)))))
Expand Down

0 comments on commit 7e15a6c

Please sign in to comment.