diff options
-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; |