ex_getln: Extract command_line_handle_key from command_line_execute

This commit is contained in:
Thiago de Arruda 2015-10-23 08:56:53 -03:00
parent c0c562f97f
commit ed985d06ef

View File

@ -852,7 +852,11 @@ static int command_line_execute(VimState *state, int key)
}
s->do_abbr = true; // default: check for abbreviation
return command_line_handle_key(s);
}
static int command_line_handle_key(CommandLineState *s)
{
// Big switch for a typed command line character.
switch (s->c) {
case K_BS: