forked from qt-creator/qt-creator
TextEditor: fix backspace on block start
Amends ec88d279a8
Change-Id: I7d83b5ffa617f8d45acc6998ce674b1afcf3a31b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Christian Stenger
parent
7f7d4889d2
commit
d717e7be04
@@ -6876,7 +6876,8 @@ void TextEditorWidgetPrivate::handleBackspaceKey()
|
||||
}
|
||||
}
|
||||
} else if (typingSettings.m_smartBackspaceBehavior == TypingSettings::BackspaceUnindents) {
|
||||
if (c.positionInBlock() > TabSettings::firstNonSpace(c.block().text())) {
|
||||
if (c.positionInBlock() == 0
|
||||
|| c.positionInBlock() > TabSettings::firstNonSpace(c.block().text())) {
|
||||
if (cursorWithinSnippet)
|
||||
c.beginEditBlock();
|
||||
c.deletePreviousChar();
|
||||
|
||||
Reference in New Issue
Block a user