set the buffer pane focus

This commit is contained in:
Josh Holtrop 2017-01-18 21:18:07 -05:00
parent 0d5b0e0437
commit f2770d66fd
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,10 @@ public:
m_show_status_bar = show_status_bar; m_show_status_bar = show_status_bar;
} }
void set_command_mode(); void set_command_mode();
void set_focused(bool focused); void set_focused(bool focused)
{
m_focused = focused;
}
protected: protected:
int effective_scroll_offset() int effective_scroll_offset()

View File

@ -121,6 +121,7 @@ bool Window::create(std::shared_ptr<Buffer> buffer)
glClearColor (0.0, 0.0, 0.0, 0.0); glClearColor (0.0, 0.0, 0.0, 0.0);
m_buffer_pane = std::make_shared<BufferPane>(this, buffer); m_buffer_pane = std::make_shared<BufferPane>(this, buffer);
m_buffer_pane->set_focused(true);
m_command_buffer = std::make_shared<Buffer>(); m_command_buffer = std::make_shared<Buffer>();
m_command_buffer_pane = std::make_shared<BufferPane>(this, m_command_buffer); m_command_buffer_pane = std::make_shared<BufferPane>(this, m_command_buffer);
m_command_buffer_pane->set_command_mode(); m_command_buffer_pane->set_command_mode();