From 677c4fd6e14ec1c484acfa4b0d01227a2eae123b Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 19 Jan 2017 21:49:25 -0500 Subject: [PATCH] do not draw cursor crosshairs in command buffer pane --- src/gui/BufferPane.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/BufferPane.cc b/src/gui/BufferPane.cc index 242c964..7959ba5 100644 --- a/src/gui/BufferPane.cc +++ b/src/gui/BufferPane.cc @@ -454,9 +454,12 @@ void BufferPane::draw_cursor(int x, int y, int i, int columns) void BufferPane::draw_crosshair(int x, int y) { - 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); + 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()