diff options
| author | Viktor Palmkvist <viktor@palmkvist.com> | 2015-08-26 11:54:51 +0200 |
|---|---|---|
| committer | Viktor Palmkvist <viktor@palmkvist.com> | 2015-08-26 11:54:51 +0200 |
| commit | b53d9e282e777673cb217523ea4df9c66fc92a14 (patch) | |
| tree | 5ec551fcb3cca5918ee5b395bc9bba27a2576653 /src/context.cc | |
| parent | 3552152b34d64246ecb1003314a1040161fe3e97 (diff) | |
Fix segfault in edge case when jumping backwards in jumplist
Closes #380
Diffstat (limited to 'src/context.cc')
| -rw-r--r-- | src/context.cc | 2 |
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(); |
