From e4641c506fb137fe87b40c182420d642da835f98 Mon Sep 17 00:00:00 2001 From: Timothy Collett Date: Sun, 13 Apr 2014 11:18:31 -0400 Subject: [PATCH] Replace a std::string method not implemented until C++11 with a C++0x-valid substitute --- 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 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 &&