From 58e2d3711f0c6fad58218d7fc6f1914324763068 Mon Sep 17 00:00:00 2001 From: Stanislav Bas Date: Fri, 5 Jun 2015 22:00:02 +0300 Subject: [PATCH] Reset Console editbox before command execution --- apps/openmw/mwgui/console.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/console.cpp b/apps/openmw/mwgui/console.cpp index 4eb9a271c1..62eeca0120 100644 --- a/apps/openmw/mwgui/console.cpp +++ b/apps/openmw/mwgui/console.cpp @@ -294,10 +294,9 @@ namespace MWGui mCommandHistory.push_back(cm); mCurrent = mCommandHistory.end(); mEditString.clear(); + mCommandLine->setCaption(""); execute (cm); - - mCommandLine->setCaption(""); } std::string Console::complete( std::string input, std::vector &matches )