From a19e268923cf00046a560c701eefb25add6579ea Mon Sep 17 00:00:00 2001 From: lethosor Date: Wed, 7 Jun 2017 15:00:30 -0400 Subject: [PATCH] Make re-invoking command-prompt hide the current prompt --- plugins/command-prompt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/command-prompt.cpp b/plugins/command-prompt.cpp index 042d5f642..21bf69b01 100644 --- a/plugins/command-prompt.cpp +++ b/plugins/command-prompt.cpp @@ -314,6 +314,7 @@ command_result show_prompt(color_ostream &out, std::vector & param if (Gui::getCurFocus() == "dfhack/commandprompt") { Screen::dismiss(Gui::getCurViewscreen(true)); + return CR_OK; } std::string params; for(size_t i=0;i