From e256971725fa44c32c5811681b4b78d08abaf1ae Mon Sep 17 00:00:00 2001 From: ac-stef Date: Tue, 16 May 2017 13:08:21 +0200 Subject: [PATCH] allow empty strings as result of inputcommand --- source/src/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/console.cpp b/source/src/console.cpp index 691f738e..a82813e2 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -563,7 +563,7 @@ void consolekey(int code, bool isdown, int cooked, SDLMod mod) if(code == SDL_AC_BUTTON_LEFT && histpos == history.length()) return; hline *h = NULL; - if(cmdline.buf[0]) + if(cmdline.buf[0] || cmdaction) { if(history.empty() || history.last()->shouldsave()) {