Remove drop jump (c-d)
This commit is contained in:
parent
1288a1d385
commit
669fccc5e9
|
@ -93,13 +93,6 @@ void JumpList::push(SelectionList jump)
|
|||
m_current = m_jumps.size();
|
||||
}
|
||||
|
||||
void JumpList::drop()
|
||||
{
|
||||
if (not m_jumps.empty())
|
||||
m_jumps.pop_back();
|
||||
m_current = m_jumps.size();
|
||||
}
|
||||
|
||||
const SelectionList& JumpList::forward()
|
||||
{
|
||||
if (m_current != m_jumps.size() and
|
||||
|
|
|
@ -53,7 +53,6 @@ private:
|
|||
struct JumpList
|
||||
{
|
||||
void push(SelectionList jump);
|
||||
void drop();
|
||||
const SelectionList& forward();
|
||||
const SelectionList& backward(const SelectionList& current);
|
||||
void forget_buffer(Buffer& buffer);
|
||||
|
|
|
@ -1152,12 +1152,6 @@ void push_selections(Context& context, NormalParams)
|
|||
get_face("Information") });
|
||||
}
|
||||
|
||||
void drop_jump(Context& context, NormalParams)
|
||||
{
|
||||
context.jump_list().drop();
|
||||
context.print_status({ "dropped last jump", get_face("Information") });
|
||||
}
|
||||
|
||||
void align(Context& context, NormalParams)
|
||||
{
|
||||
auto& selections = context.selections();
|
||||
|
@ -1652,7 +1646,6 @@ static NormalCmdDesc cmds[] =
|
|||
{ ctrl('i'), "jump forward in jump list",jump<Forward> },
|
||||
{ ctrl('o'), "jump backward in jump list", jump<Backward> },
|
||||
{ ctrl('s'), "push current selections in jump list", push_selections },
|
||||
{ ctrl('d'), "drop last jump from jump list", drop_jump },
|
||||
|
||||
{ '\'', "rotate main selection", rotate_selections },
|
||||
{ alt('\''), "rotate selections content", rotate_selections_content },
|
||||
|
|
Loading…
Reference in New Issue
Block a user