forked from qt-creator/qt-creator
Fixed wrapping to not take into account the indent level twice
Reviewed-by: Thorbjørn Lindeijer
This commit is contained in:
committed by
Thorbjørn Lindeijer
parent
9e2f12c737
commit
5b49dc9ae8
@@ -3951,7 +3951,7 @@ void BaseTextEditor::rewrapParagraph()
|
||||
if (!currentWord.isEmpty()) {
|
||||
currentLength += currentWord.length() + 1;
|
||||
|
||||
if (currentLength > paragraphWidth - indentLevel) {
|
||||
if (currentLength > paragraphWidth) {
|
||||
currentLength = currentWord.length() + 1 + indentLevel;
|
||||
result.append(QChar::ParagraphSeparator);
|
||||
result.append(spacing);
|
||||
|
||||
Reference in New Issue
Block a user