From d95350720c7cf3936526cc33bcb791c72441526b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 26 Jan 2018 19:14:17 +0100 Subject: vis: keep mapped to in command line window This keeps the existing testing infrastructure, which pipes newline separated commands to stdin, working. --- vis-prompt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vis-prompt.c b/vis-prompt.c index a0c4983..fd57a04 100644 --- a/vis-prompt.c +++ b/vis-prompt.c @@ -169,6 +169,7 @@ void vis_prompt_show(Vis *vis, const char *title) { prompt->parent_mode = vis->mode; vis_window_mode_map(prompt, VIS_MODE_NORMAL, true, "", &prompt_enter_binding); vis_window_mode_map(prompt, VIS_MODE_INSERT, true, "", &prompt_enter_binding); + vis_window_mode_map(prompt, VIS_MODE_INSERT, true, "", &prompt_enter_binding); vis_window_mode_map(prompt, VIS_MODE_VISUAL, true, "", &prompt_enter_binding); vis_window_mode_map(prompt, VIS_MODE_NORMAL, true, "", &prompt_esc_binding); vis_window_mode_map(prompt, VIS_MODE_INSERT, true, "", &prompt_up_binding); -- cgit v1.2.3