From dc287437330e26a9494c74faab3303081865f82b Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 26 Aug 2026 23:17:35 -0700 Subject: [PATCH] Fix input stalls --- src/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 7e71b86..5f78186 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -140,7 +140,8 @@ int handle_keyboard_input(int read_flag) } } - if (count == 0 && place == 0) + /* A previous pass may have shifted unprocessed pasted input to offset 0. */ + if (count == 0 && place == 0 && current_input->len == 0) goto end; for (i = 0; i < count; i++) {