Skip to content

Commit 0f85569

Browse files
ceed0eshrh
authored andcommitted
Prevent meow-keypad commands from appearing in last-command variable.
1 parent 8cfc0b0 commit 0f85569

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

meow-keypad.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
(defun meow-keypad-quit ()
119119
"Quit keypad state."
120120
(interactive)
121+
(setq this-command last-command)
121122
(when meow-keypad-message
122123
(message "KEYPAD exit"))
123124
(meow--keypad-quit))
@@ -330,6 +331,7 @@ Returning DEF will result in a generated title."
330331
(defun meow-keypad-undo ()
331332
"Pop the last input."
332333
(interactive)
334+
(setq this-command last-command)
333335
(cond
334336
(meow--use-both
335337
(setq meow--use-both nil))
@@ -394,6 +396,7 @@ try replacing the last modifier and try again."
394396
(defun meow-keypad-self-insert ()
395397
"Default command when keypad state is enabled."
396398
(interactive)
399+
(setq this-command last-command)
397400
(when-let ((e (meow--event-key last-input-event))
398401
(key (meow--parse-input-event e)))
399402
(let ((has-sub-meta (meow--keypad-has-sub-meta-keymap-p)))
@@ -446,6 +449,7 @@ try replacing the last modifier and try again."
446449
(defun meow-keypad ()
447450
"Enter keypad state."
448451
(interactive)
452+
(setq this-command last-command)
449453
(setq meow--keypad-previous-state (meow--current-state))
450454
(meow--switch-state 'keypad)
451455
(setq overriding-local-map meow-keypad-state-keymap
@@ -455,6 +459,7 @@ try replacing the last modifier and try again."
455459
(defun meow-keypad-start ()
456460
"Enter keypad state with current input as initial key sequences."
457461
(interactive)
462+
(setq this-command last-command)
458463
(setq meow--keypad-previous-state (meow--current-state))
459464
(meow--switch-state 'keypad)
460465
(setq overriding-local-map meow-keypad-state-keymap
@@ -476,6 +481,7 @@ INPUT is a string, stands for initial keys."
476481
(defun meow-keypad-describe-key ()
477482
"Describe key via KEYPAD input."
478483
(interactive)
484+
(setq this-command last-command)
479485
(setq overriding-local-map meow-keypad-state-keymap
480486
meow--keypad-help t
481487
meow--keypad-previous-state (meow--current-state))

0 commit comments

Comments
 (0)