aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json-rpc-shell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index 82ad5ea..2ddb95c 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -689,6 +689,10 @@ input_el_start (struct input *input, const char *program_name)
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);