diff --git a/src/highlighters.cc b/src/highlighters.cc index 72154f13..36904b20 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -941,7 +941,7 @@ void show_whitespaces(const Context& context, HighlightPass, DisplayBuffer& disp 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); atom_it->replace(tab + String(tabpad[(CharCount)0], CharCount{count-1})); }