diff --git a/plugins/command-prompt.cpp b/plugins/command-prompt.cpp index 842daad7b..d7a8e230c 100644 --- a/plugins/command-prompt.cpp +++ b/plugins/command-prompt.cpp @@ -153,7 +153,7 @@ void viewscreen_commandpromptst::feed(std::set *events) if (key==interface_key::STRING_A000) //delete? { if(entry.size()) - entry.pop_back(); + entry.resize(entry.size()-1); continue; } if (key >= interface_key::STRING_A000 &&