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:
Orgad Shaneh
2014-09-15 22:27:48 +03:00
committed by Orgad Shaneh
parent cc6a9babe0
commit 2a8fa5579a

View File

@@ -310,7 +310,7 @@ static QString wrappedText(const QTextEdit *e)
cursor.select(QTextCursor::LineUnderCursor); cursor.select(QTextCursor::LineUnderCursor);
rc += cursor.selectedText(); rc += cursor.selectedText();
rc += newLine; rc += newLine;
cursor.movePosition(QTextCursor::EndOfLine); // Mac needs it cursor.clearSelection();
if (cursor.atBlockEnd()) if (cursor.atBlockEnd())
break; break;
cursor.movePosition(QTextCursor::NextCharacter); cursor.movePosition(QTextCursor::NextCharacter);