mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Run newline replacer before sending message input to command executor
Fixes #1123
This commit is contained in:
parent
96bed498d0
commit
1ae66f3b7d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue