From a508d0048c4331d7c733828c0349ebbaf4bae2bc Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 29 Dec 2016 19:57:49 -0500 Subject: [PATCH] fix cursor missing at end of line in insert mode --- src/gui/BufferPane.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/BufferPane.cc b/src/gui/BufferPane.cc index 406fdc2..7ce9a92 100644 --- a/src/gui/BufferPane.cc +++ b/src/gui/BufferPane.cc @@ -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 = character_width; + int w = insert_mode() ? 1 : character_width; while (w--) { draw_cursor(col_x(col), row_y(row));