1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 13:02:01 +03:00

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 count = tabstop - (column % tabstop);
String padding = "";
for (int i = 0; i < count-1; ++i)
padding += ' ';
atom_it->replace(padding);
atom_it->replace("" + String(' ', count-1));
}
else if (c == ' ')
atom_it->replace("·");