Commit 2a8fa557 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

VCS: Fix line wrapping for lines that end with a dash

Task-number: QTCREATORBUG-8528
Change-Id: I894e562c3c6568233a85689dc1a759644779adb5
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent cc6a9bab
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment