From 1f65c5507419ded1ec143e5d52f3f4532b8e81de Mon Sep 17 00:00:00 2001
From: Lactozilla <jp6781615@gmail.com>
Date: Tue, 26 Dec 2023 18:29:41 -0300
Subject: [PATCH] Don't add text to the console on the same frame it's being
 toggled

Resolves #1161
---
 src/console.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/console.c b/src/console.c
index cdb1fc196c..ece1e97277 100644
--- a/src/console.c
+++ b/src/console.c
@@ -983,7 +983,8 @@ boolean CON_Responder(event_t *ev)
 
 	if (ev->type == ev_text)
 	{
-		CON_InputAddChar(key);
+		if (!consoletoggle)
+			CON_InputAddChar(key);
 		return true;
 	}
 
-- 
GitLab