From 382552d25c06f7df40b9ded2093ddf5b5d749370 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 19 Sep 2017 20:45:56 -0400 Subject: [PATCH] use a simple rectangle for insert-mode cursor --- src/gui/BufferPane.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/BufferPane.cc b/src/gui/BufferPane.cc index 0cb043f..de124c4 100644 --- a/src/gui/BufferPane.cc +++ b/src/gui/BufferPane.cc @@ -430,9 +430,7 @@ void BufferPane::draw_cursor(int x, int y, int i, int columns) { if (i == 0) { - m_window->gl()->draw_rect(win_x(x), win_y(y), 1, height, 1.0, 0.2, 1.0, 1.0); - m_window->gl()->draw_rect(win_x(x + 1), win_y(y + height - 1), 2, 1, 1.0, 0.2, 1.0, 1.0); - m_window->gl()->draw_rect(win_x(x + 1), win_y(y), 2, 1, 1.0, 0.2, 1.0, 1.0); + m_window->gl()->draw_rect(win_x(x), win_y(y), 3, height, 1.0, 0.2, 1.0, 1.0); } } else if (m_focused)