From d20106842855b19bd53879268c15294c102daa13 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 29 Dec 2016 19:49:48 -0500 Subject: [PATCH] do not move entire tab character down to next screen line --- src/gui/BufferPane.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/BufferPane.cc b/src/gui/BufferPane.cc index 91d60c7..40b292b 100644 --- a/src/gui/BufferPane.cc +++ b/src/gui/BufferPane.cc @@ -40,12 +40,12 @@ void BufferPane::walk_line(const Buffer::Iterator & start_of_line, std::function else { c_width = character_width(code_point); - } - if (((screen_column + c_width) > m_columns) && - (screen_column > 0)) - { - row_offset++; - screen_column = 0; + if (((screen_column + c_width) > m_columns) && + (screen_column > 0)) + { + row_offset++; + screen_column = 0; + } } callback(row_offset, screen_column, virtual_column, c_width, i); virtual_column += c_width;