From 1ae66f3b7d798a201f5a7e0e0a20e51a5f554da0 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 28 Jul 2019 12:19:33 +0200 Subject: [PATCH] Run newline replacer before sending message input to command executor Fixes #1123 --- src/widgets/splits/SplitInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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