summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-03-03 12:47:01 +0100
committerTobias Hunger <tobias.hunger@digia.com>2014-03-03 12:49:04 +0100
commit956744dff8bbc03bd9ce26eefc985d474b8330ca (patch)
tree4cc2b36b6b67ef3415267234df1ffdc9f084a4a8
parent2224472374c0235c73ba96777e868e6a056e7523 (diff)
downloadqt-creator-956744dff8bbc03bd9ce26eefc985d474b8330ca.tar.gz
Vcs: Do not freeze when the user starts its commit message with <Tab>
Task-number: QTCREATORBUG-11614 Change-Id: Ide2fe81250f3c1331a7f54be827e7dd8f551fdc6 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
-rw-r--r--src/plugins/vcsbase/submiteditorwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/vcsbase/submiteditorwidget.cpp b/src/plugins/vcsbase/submiteditorwidget.cpp
index 23c05af077..10d6a93ce9 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);