aboutsummaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-07-23 19:13:55 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-07-23 19:13:55 +0200
commitbeaf1a1f82fe7127bfa6e478d7da91b2657d6692 (patch)
tree0096254d4de78bdf1e7cc22ac3d10f11ba066458 /degesch.c
parent5613c326c9ea1a09a7709b81f560685a67e5c67c (diff)
downloadxK-beaf1a1f82fe7127bfa6e478d7da91b2657d6692.tar.gz
xK-beaf1a1f82fe7127bfa6e478d7da91b2657d6692.tar.xz
xK-beaf1a1f82fe7127bfa6e478d7da91b2657d6692.zip
degesch: fix Ctrl-J in Readline
Diffstat (limited to 'degesch.c')
-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"));