Commit 00a412f7 authored by David Schulz's avatar David Schulz
Browse files

Editor: Fix leaving block caret.



After switching from "Overwrite" to "Normal" mode using the Insert-key.

Task-number: QTCREATORBUG-6831

Change-Id: I5507c91318af1f2d2244e9ca978ef9badfd8c2b0
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent c4407480
......@@ -1805,6 +1805,7 @@ void BaseTextEditorWidget::keyPressEvent(QKeyEvent *e)
d->m_autoCompleter->setAutoParenthesesEnabled(d->autoParenthesisOverwriteBackup);
d->m_autoCompleter->setSurroundWithEnabled(d->surroundWithEnabledOverwriteBackup);
setOverwriteMode(false);
viewport()->update();
} else {
d->autoParenthesisOverwriteBackup = d->m_autoCompleter->isAutoParenthesesEnabled();
d->surroundWithEnabledOverwriteBackup = d->m_autoCompleter->isSurroundWithEnabled();
......
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