mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Follow-up to 52ef16418d
This commit is contained in:
parent
850869bb0f
commit
0839e36177
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue