From 6331fb5a61a7631fa217edde277e6e091762ec3f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 2 Oct 2013 18:48:50 +0100 Subject: Add for saving current selection in the jump list --- src/context.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/context.cc') diff --git a/src/context.cc b/src/context.cc index f81d2b9e..c36984e6 100644 --- a/src/context.cc +++ b/src/context.cc @@ -108,6 +108,12 @@ const DynamicSelectionList& Context::jump_forward() const DynamicSelectionList& Context::jump_backward() { + if (m_current_jump != m_jump_list.end() and + *m_current_jump != editor().selections()) + { + push_jump(); + return *--m_current_jump; + } if (m_current_jump != m_jump_list.begin()) { if (m_current_jump == m_jump_list.end()) -- cgit v1.2.3