diff --git a/TransmitTextEdit.cpp b/TransmitTextEdit.cpp index 4f76fe5..3b2d074 100644 --- a/TransmitTextEdit.cpp +++ b/TransmitTextEdit.cpp @@ -245,7 +245,7 @@ void TransmitTextEdit::on_textContentsChanged(int /*pos*/, int rem, int add){ QString normalized = text.normalized(QString::NormalizationForm_KD); QString result; std::copy_if(normalized.begin(), normalized.end(), std::back_inserter(result), [](QChar& c) { - return c.toLatin1() != 0 && c > 31 && c < 128; + return c.toLatin1() != 0 && (c == 10 || (c > 31 && c < 128)); }); if(result != text){ bool blocked = signalsBlocked();