From 8b2e2a1f6d3570766bd8572cc8dff6a8ec9d9a43 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 29 Dec 2016 19:50:16 -0500 Subject: [PATCH] fix bug where tab width was determined based on screen column instead of line virtual column --- src/gui/BufferPane.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {