forked from qt-creator/qt-creator
TextEditor: fix multi text cursor unindent via backspace
Change-Id: Iec2e9251b977ccbd7433009ac3e706a9327c704c
(cherry picked from commit 971bcb1a5a)
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -6845,7 +6845,7 @@ void TextEditorWidgetPrivate::handleBackspaceKey()
|
|||||||
if (cursorWithinSnippet)
|
if (cursorWithinSnippet)
|
||||||
m_snippetOverlay->accept();
|
m_snippetOverlay->accept();
|
||||||
cursorWithinSnippet = false;
|
cursorWithinSnippet = false;
|
||||||
q->unindent();
|
c = m_document->unindent(MultiTextCursor({c})).mainCursor();
|
||||||
}
|
}
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user