Minor code cleanup

This commit is contained in:
Maxime Coste 2015-03-14 11:11:01 +00:00
parent 2be6cc918b
commit adcb72e987

View File

@ -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());