fix cursor missing at end of line in insert mode
This commit is contained in:
parent
8b2e2a1f6d
commit
a508d0048c
@ -226,7 +226,7 @@ int BufferPane::draw_buffer_line(int screen_row, const Buffer::Iterator & start_
|
|||||||
bool wrap = (code_point == '\t');
|
bool wrap = (code_point == '\t');
|
||||||
int row = draw_row;
|
int row = draw_row;
|
||||||
int col = screen_column;
|
int col = screen_column;
|
||||||
int w = character_width;
|
int w = insert_mode() ? 1 : character_width;
|
||||||
while (w--)
|
while (w--)
|
||||||
{
|
{
|
||||||
draw_cursor(col_x(col), row_y(row));
|
draw_cursor(col_x(col), row_y(row));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user