forked from qt-creator/qt-creator
VCS: Fix line wrapping for lines that end with a dash
Task-number: QTCREATORBUG-8528 Change-Id: I894e562c3c6568233a85689dc1a759644779adb5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
cc6a9babe0
commit
2a8fa5579a
@@ -310,7 +310,7 @@ static QString wrappedText(const QTextEdit *e)
|
||||
cursor.select(QTextCursor::LineUnderCursor);
|
||||
rc += cursor.selectedText();
|
||||
rc += newLine;
|
||||
cursor.movePosition(QTextCursor::EndOfLine); // Mac needs it
|
||||
cursor.clearSelection();
|
||||
if (cursor.atBlockEnd())
|
||||
break;
|
||||
cursor.movePosition(QTextCursor::NextCharacter);
|
||||
|
||||
Reference in New Issue
Block a user