Use already stored coordinates in show_whitespaces
This commit is contained in:
parent
400f52c438
commit
657e30db1c
|
@ -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}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user