summaryrefslogtreecommitdiff
path: root/src/context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/context.cc')
-rw-r--r--src/context.cc2
1 files changed, 2 insertions, 0 deletions
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();