diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-09-11 07:03:17 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-09-11 07:03:17 +0000 |
| commit | 96c81c97e4c0ec5f79873b5f19ad553584e87803 (patch) | |
| tree | 91b7a90bf60554e9ec82be7c37b7a65b136bdf13 | |
| parent | 07f7e4c8b0f12a7e81bc1dfbfcf972265b01cf42 (diff) | |
Notes
| -rw-r--r-- | contrib/libedit/filecomplete.c | 10 | ||||
| -rw-r--r-- | contrib/libedit/histedit.h | 1 |
2 files changed, 11 insertions, 0 deletions
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 |
