Minor code cleanup
This commit is contained in:
parent
2be6cc918b
commit
adcb72e987
|
@ -873,28 +873,28 @@ public:
|
||||||
insert(key.key);
|
insert(key.key);
|
||||||
else if (key == ctrl('r'))
|
else if (key == ctrl('r'))
|
||||||
m_mode = Mode::InsertReg;
|
m_mode = Mode::InsertReg;
|
||||||
else if ( key == ctrl('m'))
|
else if (key == ctrl('m'))
|
||||||
insert('\n');
|
insert('\n');
|
||||||
else if ( key == ctrl('i'))
|
else if (key == ctrl('i'))
|
||||||
insert('\t');
|
insert('\t');
|
||||||
else if ( key == ctrl('n'))
|
else if (key == ctrl('n'))
|
||||||
{
|
{
|
||||||
m_completer.select(1);
|
m_completer.select(1);
|
||||||
update_completions = false;
|
update_completions = false;
|
||||||
}
|
}
|
||||||
else if ( key == ctrl('p'))
|
else if (key == ctrl('p'))
|
||||||
{
|
{
|
||||||
m_completer.select(-1);
|
m_completer.select(-1);
|
||||||
update_completions = false;
|
update_completions = false;
|
||||||
}
|
}
|
||||||
else if ( key == ctrl('x'))
|
else if (key == ctrl('x'))
|
||||||
m_mode = Mode::Complete;
|
m_mode = Mode::Complete;
|
||||||
else if ( key == ctrl('o'))
|
else if (key == ctrl('o'))
|
||||||
{
|
{
|
||||||
m_autoshowcompl = false;
|
m_autoshowcompl = false;
|
||||||
m_completer.reset();
|
m_completer.reset();
|
||||||
}
|
}
|
||||||
else if ( key == ctrl('u'))
|
else if (key == ctrl('u'))
|
||||||
context().buffer().commit_undo_group();
|
context().buffer().commit_undo_group();
|
||||||
|
|
||||||
context().hooks().run_hook("InsertKey", key_to_str(key), context());
|
context().hooks().run_hook("InsertKey", key_to_str(key), context());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user