do not move entire tab character down to next screen line

This commit is contained in:
josh committed 2016-12-29 19:49:48 -05:00
1 parent 8181d8343b
commit d201068428
1 file changed
+1 -1
+1 -1
View File
@@ -40,13 +40,13 @@ 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;
}
}
callback(row_offset, screen_column, virtual_column, c_width, i);
virtual_column += c_width;
if (code_point == '\t')