mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
ex_getln: Extract command_line_handle_key from command_line_execute
This commit is contained in:
parent
c0c562f97f
commit
ed985d06ef
@ -852,7 +852,11 @@ static int command_line_execute(VimState *state, int key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
s->do_abbr = true; // default: check for abbreviation
|
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.
|
// Big switch for a typed command line character.
|
||||||
switch (s->c) {
|
switch (s->c) {
|
||||||
case K_BS:
|
case K_BS:
|
||||||
|
Loading…
Reference in New Issue
Block a user