mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Remove configure option --disable-default-complete
The filename completion handler fallback will now be enabled by default. To disable it a new GNU Readline function pointer will be added. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
41bbb304b1
commit
bd5ae42b4b
@ -42,9 +42,6 @@ AC_ARG_ENABLE(unique-history,
|
||||
[AS_HELP_STRING([--disable-unique-history],
|
||||
[Disable uniqify of scrollback. Default: duplicate entries are ignored. Use this to save dupes.])])
|
||||
|
||||
AC_ARG_ENABLE(default-complete,
|
||||
[AS_HELP_STRING([--disable-default-complete], [Disable default (filename) completion handler.])])
|
||||
|
||||
AC_ARG_ENABLE(arrow-keys,
|
||||
[AS_HELP_STRING([--disable-arrow-keys], [Disable ANSI arrow keys.])])
|
||||
|
||||
@ -69,9 +66,6 @@ AC_ARG_ENABLE(termcap,
|
||||
AS_IF([test "x$enable_unique_history" != "xno"],
|
||||
AC_DEFINE(CONFIG_UNIQUE_HISTORY, 1, [Define to skip duplicate lines in the scrollback history.]))
|
||||
|
||||
AS_IF([test "x$enable_default_complete" != "xno"],
|
||||
AC_DEFINE(CONFIG_DEFAULT_COMPLETE, 1, [Define to enable the default completion handler.]))
|
||||
|
||||
AS_IF([test "x$enable_terminal_bell" != "xno"],
|
||||
AC_DEFINE(CONFIG_ANSI_ARROWS, 1, [Define to include ANSI arrow keys support.]))
|
||||
|
||||
|
@ -241,11 +241,7 @@ char *rl_complete(char *token, int *match)
|
||||
if (el_complete_func)
|
||||
return el_complete_func(token, match);
|
||||
|
||||
#ifdef CONFIG_DEFAULT_COMPLETE
|
||||
return el_filename_complete(token, match);
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
static rl_list_possib_func_t *el_list_possib_func = NULL;
|
||||
@ -281,11 +277,7 @@ int rl_list_possib(char *token, char ***av)
|
||||
if (el_list_possib_func)
|
||||
return el_list_possib_func(token, av);
|
||||
|
||||
#ifdef CONFIG_DEFAULT_COMPLETE
|
||||
return el_filename_list_possib(token, av);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user