diff --git a/src/gui/BufferPane.cc b/src/gui/BufferPane.cc index 40b292b..406fdc2 100644 --- a/src/gui/BufferPane.cc +++ b/src/gui/BufferPane.cc @@ -35,7 +35,7 @@ void BufferPane::walk_line(const Buffer::Iterator & start_of_line, std::function if (code_point == '\t') { uint8_t tabstop = m_buffer->tabstop(); - c_width = tabstop - screen_column % tabstop; + c_width = tabstop - virtual_column % tabstop; } else {