draw crosshair below cursor for wrapped cursor lines
This commit is contained in:
parent
55dc13d729
commit
79aa91bf49
@ -125,10 +125,17 @@ void BufferPane::draw_buffer_line(int screen_row, std::shared_ptr<Buffer::Iterat
|
|||||||
{
|
{
|
||||||
draw_cursor(col_x(col), row_y(row), i, cwidth);
|
draw_cursor(col_x(col), row_y(row), i, cwidth);
|
||||||
col++;
|
col++;
|
||||||
if (wrap && (col >= m_columns))
|
if (wrap && (col >= m_columns) && (i < (cwidth - 1)))
|
||||||
{
|
{
|
||||||
row++;
|
row++;
|
||||||
col = 0;
|
col = 0;
|
||||||
|
/* We draw another crosshair row here so that it can be
|
||||||
|
* drawn before drawing the cursor over top of it. If we
|
||||||
|
* did not do this then the draw_crosshair for the next
|
||||||
|
* character on the new row would overwrite the wrapped
|
||||||
|
* part of the cursor. */
|
||||||
|
draw_crosshair(0, row_y(row), col_x(m_columns));
|
||||||
|
last_drawn_crosshair_row = row;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user