degesch: fix Ctrl-J in Readline
This commit is contained in:
parent
5613c326c9
commit
beaf1a1f82
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue