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 <bones_was_here@xonotic.au>
// 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);
}
}