add BufferPane::clear()

This commit is contained in:
josh committed 2017-01-18 22:53:49 -05:00
1 parent 276c756bb7
commit baa5d9ef07
2 files changed
+7

No files matched your search

+6
View File
@@ -749,3 +749,9 @@ void BufferPane::set_command_mode()
set_show_status_bar(false);
enter_insert_mode(Window::EnterInsertModeMode::START_OF_CHAR);
}
void BufferPane::clear()
{
m_buffer->clear();
*m_iterator = m_buffer->begin();
}
+1
View File
@@ -34,6 +34,7 @@ public:
{
m_focused = focused;
}
void clear();
protected:
int effective_scroll_offset()