- try to fix backspace after doing a paste
This commit is contained in:
parent
07f46f3f7b
commit
312a4e8a64
|
@ -1 +1 @@
|
||||||
Subproject commit c3ef4617d38e0062ab4835c5d5662a9580f1f095
|
Subproject commit bf04854ade7cd0fc51483c857e590acfef4fbc26
|
|
@ -104,7 +104,9 @@ bool ChatManager::textInput(std::string inputText) {
|
||||||
string textToAdd=inputText.substr (0,maxpaste);
|
string textToAdd=inputText.substr (0,maxpaste);
|
||||||
if(editEnabled && (int)text.length() < maxTextLenAllowed) {
|
if(editEnabled && (int)text.length() < maxTextLenAllowed) {
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
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;
|
this->text +=textToAdd;
|
||||||
updateAutoCompleteBuffer();
|
updateAutoCompleteBuffer();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue