diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-06-17 14:48:59 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-06-17 14:48:59 +0100 |
| commit | 657e30db1cf5e9de4ae403d8b2b4a532211aed1e (patch) | |
| tree | e22c4294b78133cf7b5b5ddd6a340a738a91fab6 /src | |
| parent | 400f52c438e0bdb9792916316f552429a9e9d0d2 (diff) | |
Use already stored coordinates in show_whitespaces
Diffstat (limited to 'src')
| -rw-r--r-- | src/highlighters.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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})); } |
