This commit is contained in:
zneix 2021-07-31 22:40:29 +02:00
parent 850869bb0f
commit 0839e36177
No known key found for this signature in database
GPG key ID: 911916E0523B22F6

View file

@ -67,7 +67,7 @@ QString ResizingTextEdit::textUnderCursor(bool *hadSpace) const
auto textUpToCursor = currentText.left(tc.selectionStart()); auto textUpToCursor = currentText.left(tc.selectionStart());
auto words = textUpToCursor.splitRef(' '); auto words = textUpToCursor.split(' ');
if (words.size() == 0) if (words.size() == 0)
{ {
return QString(); return QString();
@ -89,7 +89,7 @@ QString ResizingTextEdit::textUnderCursor(bool *hadSpace) const
continue; continue;
} }
lastWord = word.toString(); lastWord = word;
break; break;
} }