forked from qt-creator/qt-creator
TextEditor: Fixed marking of unchanged blocks when tabs are used
Task-number: QTCREATORBUG-5712 Change-Id: I50d1cbabebece46acbe4fa3ddf1565a1a95f5c9c Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
committed by
Leandro Melo
parent
1cd6972ac8
commit
59ef5edcf5
@@ -171,9 +171,8 @@ bool TabSettings::isIndentationClean(const QTextBlock &block) const
|
|||||||
if (!spacesForTabs && spaceCount == m_tabSize)
|
if (!spacesForTabs && spaceCount == m_tabSize)
|
||||||
return false;
|
return false;
|
||||||
} else if (c == QLatin1Char('\t')) {
|
} else if (c == QLatin1Char('\t')) {
|
||||||
if (spacesForTabs || spaceCount != m_indentSize)
|
if (spacesForTabs || spaceCount != 0)
|
||||||
return false;
|
return false;
|
||||||
spaceCount = 0;
|
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user