From: bones_was_here Date: Wed, 3 Jan 2024 03:29:39 +0000 (+1000) Subject: cmd: read only one line per frame from stdin X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=161839c6aaaec14717d7bfbe8bc9d443284bbf9d;p=xonotic%2Fdarkplaces.git 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 --- 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); } }