1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

fix deletion in in-game console

This commit is contained in:
AlexVinS 2014-07-03 14:58:56 +04:00
parent 397f4cf8b6
commit 022f71c26e

View File

@ -3946,8 +3946,8 @@ void CInGameConsole::keyPressed (const SDL_KeyboardEvent & key)
{
if(enteredText.size() > 1)
{
Unicode::trimRight(enteredText,1);
enteredText[enteredText.size()-1] = '_';
Unicode::trimRight(enteredText,2);
enteredText += '_';
refreshEnteredText();
}
break;