use a simple rectangle for insert-mode cursor

This commit is contained in:
Josh Holtrop 2017-09-19 20:45:56 -04:00
parent 5c3a095aeb
commit 382552d25c

View File

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