diff --git a/src/context.cc b/src/context.cc index af566113..e3eed5b1 100644 --- a/src/context.cc +++ b/src/context.cc @@ -127,6 +127,8 @@ const SelectionList& Context::jump_backward() { push_jump(); --m_current_jump; + if (m_current_jump == m_jump_list.begin()) + throw runtime_error("no previous jump"); } SelectionList& res = *--m_current_jump; res.update();