diff options
Diffstat (limited to 'src/context.cc')
| -rw-r--r-- | src/context.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/context.cc b/src/context.cc index d43e85ac..35e28731 100644 --- a/src/context.cc +++ b/src/context.cc @@ -103,7 +103,7 @@ void Context::print_status(DisplayLine status) const void Context::push_jump() { - const SelectionList& jump = editor().selections(); + const SelectionList& jump = selections(); if (m_current_jump != m_jump_list.end()) { auto begin = m_current_jump; @@ -129,7 +129,7 @@ const DynamicSelectionList& Context::jump_forward() const DynamicSelectionList& Context::jump_backward() { if (m_current_jump != m_jump_list.end() and - *m_current_jump != editor().selections()) + *m_current_jump != selections()) { push_jump(); return *--m_current_jump; @@ -177,4 +177,14 @@ void Context::change_editor(Editor& editor) input_handler().reset_normal_mode(); } +SelectionList& Context::selections() +{ + return editor().selections(); +} + +const SelectionList& Context::selections() const +{ + return editor().selections(); +} + } |
