do not draw cursor crosshairs in command buffer pane

This commit is contained in:
Josh Holtrop 2017-01-19 21:49:25 -05:00
parent ec9b47d113
commit 677c4fd6e1

View File

@ -453,11 +453,14 @@ void BufferPane::draw_cursor(int x, int y, int i, int columns)
}
void BufferPane::draw_crosshair(int x, int y)
{
if (!m_command_mode)
{
int width = m_window->font()->get_advance();
int height = m_window->font()->get_line_height();
m_window->gl()->draw_rect(win_x(x), win_y(y), width, height, 0.1, 0.1, 0.1, 1.0);
}
}
void BufferPane::exit_insert_mode()
{