From ba3e521cf37ec093557f8d596d80b5c255a81d6f Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Fri, 15 Nov 2019 09:45:54 -0500 Subject: [PATCH] Fixed newline processing --- TransmitTextEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();