From 956744dff8bbc03bd9ce26eefc985d474b8330ca Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 3 Mar 2014 12:47:01 +0100 Subject: [PATCH] Vcs: Do not freeze when the user starts its commit message with Task-number: QTCREATORBUG-11614 Change-Id: Ide2fe81250f3c1331a7f54be827e7dd8f551fdc6 Reviewed-by: Tobias Hunger --- src/plugins/vcsbase/submiteditorwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/vcsbase/submiteditorwidget.cpp b/src/plugins/vcsbase/submiteditorwidget.cpp index 23c05af0779..10d6a93ce99 100644 --- a/src/plugins/vcsbase/submiteditorwidget.cpp +++ b/src/plugins/vcsbase/submiteditorwidget.cpp @@ -303,6 +303,7 @@ static QString wrappedText(const QTextEdit *e) const QString block = cursor.block().text(); if (block.startsWith(QLatin1Char('\t'))) { // Don't wrap rc += block + newLine; + cursor.movePosition(QTextCursor::EndOfBlock); } else { forever { cursor.select(QTextCursor::LineUnderCursor);