add BufferPane::{undo,redo}()
This commit is contained in:
parent
cac339a9f2
commit
9d970d1aee
@ -696,3 +696,15 @@ void BufferPane::draw_status_bar()
|
||||
filename_x += m_window->font()->get_advance();
|
||||
}
|
||||
}
|
||||
|
||||
void BufferPane::undo()
|
||||
{
|
||||
m_buffer->undo();
|
||||
m_window->request_redraw();
|
||||
}
|
||||
|
||||
void BufferPane::redo()
|
||||
{
|
||||
m_buffer->redo();
|
||||
m_window->request_redraw();
|
||||
}
|
||||
|
@ -23,6 +23,8 @@ public:
|
||||
bool insert_mode() const { return m_buffer->insert_mode(); }
|
||||
void scroll_window_up(Window::ScrollMode scroll_mode);
|
||||
void scroll_window_down(Window::ScrollMode scroll_mode);
|
||||
void undo();
|
||||
void redo();
|
||||
|
||||
protected:
|
||||
int effective_scroll_offset()
|
||||
|
Loading…
x
Reference in New Issue
Block a user