Skip to content

Commit

Permalink
fix: the self-insert command in vi-mode should not insert un-printabl…
Browse files Browse the repository at this point in the history
…e char while flushing the pending-keys
  • Loading branch information
sakurawald committed Dec 10, 2024
1 parent 49d2f62 commit 2d73f80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/vi-mode/vi-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@
(when (and
(typep command 'self-insert)
pending-keys)
(dolist (key pending-keys) (self-insert 1 (key-to-char key))))
(loop :for key :in pending-keys
:until (named-key-sym-p (key-sym key))
:do
(self-insert 1 (key-to-char key))))

(when *enable-repeat-recording*
(unless (or (and (typep command 'vi-command)
Expand Down

0 comments on commit 2d73f80

Please sign in to comment.