TextEditor: fix multi text cursor unindent via backspace

Change-Id: Iec2e9251b977ccbd7433009ac3e706a9327c704c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
David Schulz
2024-02-09 06:11:27 +01:00
parent e2756fde8b
commit 971bcb1a5a

View File

@@ -6846,7 +6846,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;
} }