From a0c4d566683c3e9663d94519fac00dfe52af99d6 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 2 Mar 2020 18:19:41 +0900 Subject: [PATCH] [qwaq] Continue processing on void commands If the last command in the buffer had no parameters, its length would be only 2 and thus processing would stop before reading the command from the buffer. --- ruamoko/qwaq/qwaq-curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruamoko/qwaq/qwaq-curses.c b/ruamoko/qwaq/qwaq-curses.c index 474203e47..2b53efb06 100644 --- a/ruamoko/qwaq/qwaq-curses.c +++ b/ruamoko/qwaq/qwaq-curses.c @@ -513,7 +513,7 @@ cmd_wbkgd (qwaq_resources_t *res) static void process_commands (qwaq_resources_t *res) { - while (RB_DATA_AVAILABLE (res->command_queue) > 2) { + while (RB_DATA_AVAILABLE (res->command_queue) >= 2) { switch ((qwaq_commands) RB_PEEK_DATA (res->command_queue, 0)) { case qwaq_cmd_newwin: cmd_newwin (res);