Add a entry point for the complete function for FreeBSD compatibility with sh.
This commit is contained in:
parent
17f220a2d7
commit
3ce4aa662f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: filecomplete.c,v 1.71 2022/10/30 19:11:31 christos Exp $ */
|
||||
/* $NetBSD: filecomplete.c,v 1.72 2023/02/03 22:01:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include "config.h"
|
||||
#if !defined(lint) && !defined(SCCSID)
|
||||
__RCSID("$NetBSD: filecomplete.c,v 1.71 2022/10/30 19:11:31 christos Exp $");
|
||||
__RCSID("$NetBSD: filecomplete.c,v 1.72 2023/02/03 22:01:42 christos Exp $");
|
||||
#endif /* not lint && not SCCSID */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -851,3 +851,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);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: histedit.h,v 1.61 2022/02/08 21:13:22 rillig Exp $ */
|
||||
/* $NetBSD: histedit.h,v 1.62 2023/02/03 22:01:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue