From 161839c6aaaec14717d7bfbe8bc9d443284bbf9d Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Wed, 3 Jan 2024 13:29:39 +1000 Subject: [PATCH] cmd: read only one line per frame from stdin Prioritising the ordering of new commands with respect to existing commands, over the ordering of pasted commands that include `wait`. Signed-off-by: bones_was_here --- cmd.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd.c b/cmd.c index 1d92cadc..8c6c2eaa 100644 --- a/cmd.c +++ b/cmd.c @@ -430,14 +430,6 @@ static void Cbuf_Frame_Input(void) // bones_was_here: prepending allows a loop such as `alias foo "bar; wait; foo"; foo` // to be broken with an alias or unalias command Cbuf_InsertText(cmd_local, line); - /* appending subsequent lines allows this test to pass (if pasted with proper \n): - * wait; echo a - * wait - * echo b - * echo c - */ - while ((line = Sys_ConsoleInput())) - Cbuf_AddText(cmd_local, line); } } -- 2.39.2