From fb066685db9919fce66b2313d5bcfad828be9d49 Mon Sep 17 00:00:00 2001 From: Mithgol Date: Wed, 23 Sep 2020 16:22:58 +0300 Subject: [PATCH] =?UTF-8?q?do=C2=A0not=20treat=20non-breaking=20spaces=20(?= =?UTF-8?q?U+00A0,=20dec=C2=A0160)=20as=C2=A0normal=C2=A0spaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/text/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/text/text.cpp b/ui/text/text.cpp index 9d1f8a12..4afcf697 100644 --- a/ui/text/text.cpp +++ b/ui/text/text.cpp @@ -743,7 +743,7 @@ void Parser::parseCurrentChar() { _ch = ((_ptr < _end) ? *_ptr : 0); _emojiLookback = 0; const auto isNewLine = _multiline && IsNewline(_ch); - const auto isSpace = IsSpace(_ch); + const auto isSpace = IsSpace(_ch) && _ch != QChar(160); const auto isDiac = IsDiac(_ch); const auto isTilde = _checkTilde && (_ch == '~'); const auto skip = [&] {