Add libedit autocompletion back in

I've mistakenly removed it in the M-Enter change.
This commit is contained in:
Přemysl Eric Janouch 2020-10-13 20:19:19 +02:00
parent d820bc2f23
commit fcf65f8377
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -688,6 +688,10 @@ input_el_start (struct input *input, const char *program_name)
"run-editor", "Run editor to edit line", input_el_on_run_editor);
el_set (self->editline, EL_BIND, "M-e", "run-editor", NULL);
el_set (self->editline, EL_ADDFN,
"complete", "Complete word", input_el_on_complete);
el_set (self->editline, EL_BIND, "\t", "complete", NULL);
el_set (self->editline, EL_ADDFN,
"newline-insert", "Insert a newline", input_el_on_newline_insert);
el_set (self->editline, EL_BIND, "M-\n", "newline-insert", NULL);