diff options
author | David Schulz <david.schulz@qt.io> | 2020-02-20 08:26:32 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2020-02-20 12:45:28 +0000 |
commit | aee78bd58db609efc729cf883e91049e0e342049 (patch) | |
tree | e8dead9f6c30ec44065942374baed41c0f4f9c3f | |
parent | c34864ccab116571409b772cd9a109b87331348d (diff) |
Editor: do not split on nbsp in rewrap paragraph
Change-Id: I443400056f647a58a98d9bb6a221b10852470ba2
Fixes: QTCREATORBUG-23643
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/texteditor/texteditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index ac84aca67c..58ade7f6e7 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -7165,7 +7165,7 @@ void TextEditorWidget::rewrapParagraph() QString currentWord; for (const QChar &ch : qAsConst(selectedText)) { - if (ch.isSpace()) { + if (ch.isSpace() && ch != QChar::Nbsp) { if (!currentWord.isEmpty()) { currentLength += currentWord.length() + 1; |