aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
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"));