From ed985d06efdecaa5262cb2f713696edec3147ac9 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 23 Oct 2015 08:56:53 -0300 Subject: ex_getln: Extract command_line_handle_key from command_line_execute --- src/nvim/ex_getln.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nvim/ex_getln.c') diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 13515be8fa..52292128d8 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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: -- cgit