aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-28 08:49:01 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-28 08:49:01 +0200
commitce3976e1ec7efd5b7202a953874b91dd0cac1f30 (patch)
treeb91da113f6ba5c0701650155ef8be00ed76af245
parente5ed89646be2a8242dad028e1eaa4241d4f1dda3 (diff)
downloadxK-ce3976e1ec7efd5b7202a953874b91dd0cac1f30.tar.gz
xK-ce3976e1ec7efd5b7202a953874b91dd0cac1f30.tar.xz
xK-ce3976e1ec7efd5b7202a953874b91dd0cac1f30.zip
xC: normalize ^J behaviour to follow Readline
For some reason Editline inserts it verbatim, but in a more broken manner than it has with ^V^J.
-rw-r--r--xC.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xC.c b/xC.c
index 6264b8c..37783b7 100644
--- a/xC.c
+++ b/xC.c
@@ -13775,6 +13775,7 @@ app_editline_init (struct input_el *self)
CALL_ (input, bind_control, 'q', "ed-redisplay");
// We need to hide the prompt and input first
+ CALL_ (input, bind, "\r", "send-line");
CALL_ (input, bind, "\n", "send-line");
CALL_ (input, bind_control, 'i', "complete");