From 72029e7de930445e11bc2415921ad5e1bef94eff Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 20 Jun 2018 22:16:23 +0300 Subject: [PATCH] Avoid closing DF if launching command-prompt from prompt --- plugins/command-prompt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/command-prompt.cpp b/plugins/command-prompt.cpp index c53132486..d288f747c 100644 --- a/plugins/command-prompt.cpp +++ b/plugins/command-prompt.cpp @@ -315,7 +315,7 @@ void viewscreen_commandpromptst::feed(std::set *events) command_result show_prompt(color_ostream &out, std::vector & parameters) { - if (Gui::getCurFocus() == "dfhack/commandprompt") + if (Gui::getCurFocus(true) == "dfhack/commandprompt") { Screen::dismiss(Gui::getCurViewscreen(true)); return CR_OK;