Commit 5345e05f authored by David Schulz's avatar David Schulz
Browse files

TextEditor: Fix unindent on backspace.

Task-number: QTCREATORBUG-15250
Change-Id: I4d19ad90098dc64f96b1aa7f728d8f30d05bff6d
Reviewed-by: default avatarChristian Stenger <>
parent 8abd9fae
......@@ -229,7 +229,7 @@ int TabSettings::columnCountForText(const QString &text, int startColumn) const
int TabSettings::spacesLeftFromPosition(const QString &text, int position)
if (position >= text.size())
if (position > text.size())
return 0;
int i = position;
while (i > 0) {
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