Use already stored coordinates in show_whitespaces

This commit is contained in:
Maxime Coste 2017-06-17 14:48:59 +01:00
parent 400f52c438
commit 657e30db1c

View File

@ -941,7 +941,7 @@ void show_whitespaces(const Context& context, HighlightPass, DisplayBuffer& disp
if (cp == '\t') if (cp == '\t')
{ {
int column = (int)get_column(buffer, tabstop, (it - 1).coord()); int column = (int)get_column(buffer, tabstop, coord);
int count = tabstop - (column % tabstop); int count = tabstop - (column % tabstop);
atom_it->replace(tab + String(tabpad[(CharCount)0], CharCount{count-1})); atom_it->replace(tab + String(tabpad[(CharCount)0], CharCount{count-1}));
} }