Run newline replacer before sending message input to command executor

Fixes #1123
This commit is contained in:
Rasmus Karlsson 2019-07-28 12:19:33 +02:00
parent 96bed498d0
commit 1ae66f3b7d

View file

@ -192,8 +192,8 @@ void SplitInput::installKeyPressedEvent()
QString message = ui_.textEdit->toPlainText(); QString message = ui_.textEdit->toPlainText();
message = message.replace('\n', ' ');
QString sendMessage = app->commands->execCommand(message, c, false); QString sendMessage = app->commands->execCommand(message, c, false);
sendMessage = sendMessage.replace('\n', ' ');
c->sendMessage(sendMessage); c->sendMessage(sendMessage);
// don't add duplicate messages and empty message to message history // don't add duplicate messages and empty message to message history