Fix segfault in edge case when jumping backwards in jumplist
Closes #380
This commit is contained in:
parent
3552152b34
commit
b53d9e282e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user