diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index a0e73430f..d89041ab7 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -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);