From 8b8a277a7aa9146b0825398f9e81ddccb81ee2dd Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 26 Jun 2023 09:10:28 +0100 Subject: [PATCH] Fix control-character generation fix The change I made in c224416c76e41f284b318adc51f08c3ed11de8e2 was incorrect: I accidentally removed a "return" statement and left in a debugging printf() when I meant to keep the return and drop the printf(). --- midend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midend.c b/midend.c index 7a6aa92..5344d88 100644 --- a/midend.c +++ b/midend.c @@ -1223,7 +1223,7 @@ int midend_process_key(midend *me, int x, int y, int button) if (!IS_CURSOR_MOVE(button & ~MOD_MASK)) { /* reject CTRL+anything odd */ if ((button & MOD_CTRL) && (button & ~MOD_MASK) >= 0x20) - printf(" -> %d\n", PKR_UNUSED); + return PKR_UNUSED; /* otherwise strip them */ button &= ~(MOD_CTRL | MOD_SHFT); }