From beaf1a1f82fe7127bfa6e478d7da91b2657d6692 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 23 Jul 2016 19:13:55 +0200 Subject: degesch: fix Ctrl-J in Readline --- degesch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/degesch.c b/degesch.c index e1f9801..1d6e597 100644 --- a/degesch.c +++ b/degesch.c @@ -12522,6 +12522,9 @@ app_readline_init (void) // our dear user could potentionally rig things up in a way that might // result in some funny unspecified behaviour + // For vi mode, enabling "show-mode-in-prompt" is recommended as there is + // no easy way to indicate mode changes otherwise. + rl_add_defun ("send-line", on_readline_return, -1); bind_common_keys (ctx); @@ -12531,6 +12534,7 @@ app_readline_init (void) // We need to hide the prompt and input first rl_bind_key (RETURN, rl_named_function ("send-line")); + CALL_ (self, bind_control, 'j', "send-line"); rl_variable_bind ("completion-ignore-case", "on"); rl_bind_key (TAB, rl_named_function ("menu-complete")); -- cgit v1.2.3-70-g09d2