Fix segfault in edge case when jumping backwards in jumplist

Closes #380
This commit is contained in:
Viktor Palmkvist 2015-08-26 11:54:51 +02:00
parent 3552152b34
commit b53d9e282e

View File

@ -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();