Context: push_jump does not allow the same jump to be present multiple times

This commit is contained in:
Maxime Coste 2013-04-09 14:29:28 +02:00
parent 5b1839ab75
commit 829876a6fa

View File

@ -112,7 +112,8 @@ struct Context
++begin; ++begin;
m_jump_list.erase(begin, m_jump_list.end()); m_jump_list.erase(begin, m_jump_list.end());
} }
m_jump_list.erase(std::remove(begin(m_jump_list), end(m_jump_list), jump),
end(m_jump_list));
m_jump_list.push_back({editor().buffer(), jump}); m_jump_list.push_back({editor().buffer(), jump});
m_current_jump = m_jump_list.end(); m_current_jump = m_jump_list.end();
} }