- try to fix backspace after doing a paste

This commit is contained in:
SoftCoder 2015-11-09 13:22:50 -08:00
parent 07f46f3f7b
commit 312a4e8a64
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit c3ef4617d38e0062ab4835c5d5662a9580f1f095
Subproject commit bf04854ade7cd0fc51483c857e590acfef4fbc26

View File

@ -104,7 +104,9 @@ bool ChatManager::textInput(std::string inputText) {
string textToAdd=inputText.substr (0,maxpaste);
if(editEnabled && (int)text.length() < maxTextLenAllowed) {
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
textCharLength.push_back(textToAdd.length());
for(unsigned int idx = 0; idx < textToAdd.size(); ++idx) {
textCharLength.push_back(1);
}
this->text +=textToAdd;
updateAutoCompleteBuffer();
return true;