From a2e5f7428c0cae93cac150baff8b53818248f891 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 31 Dec 2016 12:15:48 -0500 Subject: [PATCH] fix cursor being hidden in command mode on empty lines --- 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 7ce9a92..1998625 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 = 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));