mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
ex_getln: Extract command_line_handle_key from command_line_execute
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user