diff --git a/contrib/libedit/filecomplete.c b/contrib/libedit/filecomplete.c index 8dd14c7f2d44..662a0bb85d0b 100644 --- a/contrib/libedit/filecomplete.c +++ b/contrib/libedit/filecomplete.c @@ -823,3 +823,13 @@ _el_fn_complete(EditLine *el, int ch __attribute__((__unused__))) break_chars, NULL, NULL, (size_t)100, NULL, NULL, NULL, NULL); } + +/* + * el-compatible wrapper around rl_complete; needed for key binding + */ +/* ARGSUSED */ +unsigned char +_el_fn_sh_complete(EditLine *el, int ch) +{ + return _el_fn_complete(el, ch); +} diff --git a/contrib/libedit/histedit.h b/contrib/libedit/histedit.h index 5b5bad1a021a..56bb3ef9ea6a 100644 --- a/contrib/libedit/histedit.h +++ b/contrib/libedit/histedit.h @@ -113,6 +113,7 @@ int el_parse(EditLine *, int, const char **); int el_set(EditLine *, int, ...); int el_get(EditLine *, int, ...); unsigned char _el_fn_complete(EditLine *, int); +unsigned char _el_fn_sh_complete(EditLine *, int); /* * el_set/el_get parameters