Commit f552e1d0 authored by mae's avatar mae
Browse files

fix crash

confusion between columns and character positions
parent 38abb728
......@@ -145,7 +145,7 @@ int TabSettings::indentationColumn(const QString &text) const
int TabSettings::maximumPadding(const QString &text) const
{
int fns = columnAt(text, firstNonSpace(text));
int fns = firstNonSpace(text);
int i = fns;
while (i > 0) {
if (text.at(i-1) != QLatin1Char(' '))
......
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