do not move entire tab character down to next screen line
This commit is contained in:
parent
8181d8343b
commit
d201068428
@ -40,12 +40,12 @@ void BufferPane::walk_line(const Buffer::Iterator & start_of_line, std::function
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
c_width = character_width(code_point);
|
c_width = character_width(code_point);
|
||||||
}
|
if (((screen_column + c_width) > m_columns) &&
|
||||||
if (((screen_column + c_width) > m_columns) &&
|
(screen_column > 0))
|
||||||
(screen_column > 0))
|
{
|
||||||
{
|
row_offset++;
|
||||||
row_offset++;
|
screen_column = 0;
|
||||||
screen_column = 0;
|
}
|
||||||
}
|
}
|
||||||
callback(row_offset, screen_column, virtual_column, c_width, i);
|
callback(row_offset, screen_column, virtual_column, c_width, i);
|
||||||
virtual_column += c_width;
|
virtual_column += c_width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user