mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Replace newlines with spaces
This commit is contained in:
parent
6baf045c4c
commit
7ce1458348
1 changed files with 5 additions and 2 deletions
|
@ -57,8 +57,11 @@ ChatWidgetInput::ChatWidgetInput(ChatWidget *_chatWidget)
|
|||
if (c == nullptr) {
|
||||
return;
|
||||
}
|
||||
c->sendMessage(textInput.toPlainText());
|
||||
prevMsg.append(textInput.toPlainText());
|
||||
QString message = textInput.toPlainText();
|
||||
|
||||
c->sendMessage(message.replace('\n', ' '));
|
||||
prevMsg.append(message);
|
||||
|
||||
event->accept();
|
||||
if (!(event->modifiers() == Qt::ControlModifier)) {
|
||||
textInput.setText(QString());
|
||||
|
|
Loading…
Reference in a new issue