add BufferPane::clear()
This commit is contained in:
1 parent
276c756bb7
commit
baa5d9ef07
2 files changed
+7
No files matched your search
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user