Skip to content
Snippets Groups Projects
Commit 98f35da6 authored by mae's avatar mae
Browse files

fix TabSettings::isIndentationClean(), it had false positives

parent 4c20a8af
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ bool TabSettings::isIndentationClean(const QString &text) const
if (c == QLatin1Char(' ')) {
++spaceCount;
if (spaceCount == m_tabSize)
if (!m_spacesForTabs && spaceCount == m_tabSize)
return false;
} else if (c == QLatin1Char('\t')) {
if (m_spacesForTabs || spaceCount != m_indentSize)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment