diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-07-23 19:13:55 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-07-23 19:13:55 +0200 |
commit | beaf1a1f82fe7127bfa6e478d7da91b2657d6692 (patch) | |
tree | 0096254d4de78bdf1e7cc22ac3d10f11ba066458 /degesch.c | |
parent | 5613c326c9ea1a09a7709b81f560685a67e5c67c (diff) | |
download | xK-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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")); |