Add libedit autocompletion back in
I've mistakenly removed it in the M-Enter change.
This commit is contained in:
parent
d820bc2f23
commit
fcf65f8377
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue