fix cursor being hidden in command mode on empty lines
This commit is contained in:
parent
46f5059a0b
commit
a2e5f7428c
@ -226,7 +226,7 @@ int BufferPane::draw_buffer_line(int screen_row, const Buffer::Iterator & start_
|
||||
bool wrap = (code_point == '\t');
|
||||
int row = draw_row;
|
||||
int col = screen_column;
|
||||
int w = insert_mode() ? 1 : character_width;
|
||||
int w = insert_mode() ? 1 : std::max(1, character_width);
|
||||
while (w--)
|
||||
{
|
||||
draw_cursor(col_x(col), row_y(row));
|
||||
|
Loading…
x
Reference in New Issue
Block a user