diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2018-01-26 19:14:17 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2018-01-26 20:06:53 +0100 |
| commit | d95350720c7cf3936526cc33bcb791c72441526b (patch) | |
| tree | 566d158fc6c619d6585cd57feb3ce5b0255fb789 | |
| parent | 2cfc9c867bdfd4cc3ae3246f31cf636633fe1a5f (diff) | |
| download | vis-d95350720c7cf3936526cc33bcb791c72441526b.tar.gz vis-d95350720c7cf3936526cc33bcb791c72441526b.tar.xz | |
vis: keep <C-j> mapped to <Enter> in command line window
This keeps the existing testing infrastructure, which pipes newline
separated commands to stdin, working.
| -rw-r--r-- | vis-prompt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, "<Enter>", &prompt_enter_binding); vis_window_mode_map(prompt, VIS_MODE_INSERT, true, "<Enter>", &prompt_enter_binding); + vis_window_mode_map(prompt, VIS_MODE_INSERT, true, "<C-j>", &prompt_enter_binding); vis_window_mode_map(prompt, VIS_MODE_VISUAL, true, "<Enter>", &prompt_enter_binding); vis_window_mode_map(prompt, VIS_MODE_NORMAL, true, "<Escape>", &prompt_esc_binding); vis_window_mode_map(prompt, VIS_MODE_INSERT, true, "<Up>", &prompt_up_binding); |
