add BufferPane::clear()
This commit is contained in:
parent
276c756bb7
commit
baa5d9ef07
@ -749,3 +749,9 @@ void BufferPane::set_command_mode()
|
|||||||
set_show_status_bar(false);
|
set_show_status_bar(false);
|
||||||
enter_insert_mode(Window::EnterInsertModeMode::START_OF_CHAR);
|
enter_insert_mode(Window::EnterInsertModeMode::START_OF_CHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BufferPane::clear()
|
||||||
|
{
|
||||||
|
m_buffer->clear();
|
||||||
|
*m_iterator = m_buffer->begin();
|
||||||
|
}
|
||||||
|
@ -34,6 +34,7 @@ public:
|
|||||||
{
|
{
|
||||||
m_focused = focused;
|
m_focused = focused;
|
||||||
}
|
}
|
||||||
|
void clear();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int effective_scroll_offset()
|
int effective_scroll_offset()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user