fix cursor missing at end of line in insert mode

This commit is contained in:
Josh Holtrop 2016-12-29 19:57:49 -05:00
parent 8b2e2a1f6d
commit a508d0048c

View File

@ -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));