diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index 1e7b1fdb4..df6982616 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -192,8 +192,8 @@ void SplitInput::installKeyPressedEvent() QString message = ui_.textEdit->toPlainText(); + message = message.replace('\n', ' '); QString sendMessage = app->commands->execCommand(message, c, false); - sendMessage = sendMessage.replace('\n', ' '); c->sendMessage(sendMessage); // don't add duplicate messages and empty message to message history