set the buffer pane focus
This commit is contained in:
parent
0d5b0e0437
commit
f2770d66fd
@ -30,7 +30,10 @@ public:
|
||||
m_show_status_bar = show_status_bar;
|
||||
}
|
||||
void set_command_mode();
|
||||
void set_focused(bool focused);
|
||||
void set_focused(bool focused)
|
||||
{
|
||||
m_focused = focused;
|
||||
}
|
||||
|
||||
protected:
|
||||
int effective_scroll_offset()
|
||||
|
@ -121,6 +121,7 @@ bool Window::create(std::shared_ptr<Buffer> buffer)
|
||||
glClearColor (0.0, 0.0, 0.0, 0.0);
|
||||
|
||||
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_pane = std::make_shared<BufferPane>(this, m_command_buffer);
|
||||
m_command_buffer_pane->set_command_mode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user