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.
This commit is contained in:
Přemysl Eric Janouch 2021-10-28 08:49:01 +02:00
parent e5ed89646b
commit ce3976e1ec
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 0 deletions

1
xC.c
View File

@ -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");