Small code tweak in show_whitespaces highlighter

This commit is contained in:
Maxime Coste 2015-09-04 13:47:16 +01:00
parent ededc84c8c
commit ae720b90b1

View File

@ -689,10 +689,7 @@ void show_whitespaces(const Context& context, HighlightFlags flags, DisplayBuffe
{ {
int column = (int)get_column(buffer, tabstop, it.coord()); int column = (int)get_column(buffer, tabstop, it.coord());
int count = tabstop - (column % tabstop); int count = tabstop - (column % tabstop);
String padding = ""; atom_it->replace("" + String(' ', count-1));
for (int i = 0; i < count-1; ++i)
padding += ' ';
atom_it->replace(padding);
} }
else if (c == ' ') else if (c == ' ')
atom_it->replace("·"); atom_it->replace("·");