mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Use setPlainText
when finishing a completion (#3785)
This commit is contained in:
parent
64da34342c
commit
e9e3e5a25a
|
@ -651,7 +651,8 @@ void SplitInput::insertCompletionText(const QString &input_)
|
|||
if (done)
|
||||
{
|
||||
auto cursor = edit.textCursor();
|
||||
edit.setText(text.remove(i, position - i + 1).insert(i, input));
|
||||
edit.setPlainText(
|
||||
text.remove(i, position - i + 1).insert(i, input));
|
||||
|
||||
cursor.setPosition(i + input.size());
|
||||
edit.setTextCursor(cursor);
|
||||
|
|
Loading…
Reference in a new issue