diff --git a/configure.ac b/configure.ac index 7f3b170..6c64bd1 100644 --- a/configure.ac +++ b/configure.ac @@ -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.])) diff --git a/src/complete.c b/src/complete.c index 75f46dd..049e307 100644 --- a/src/complete.c +++ b/src/complete.c @@ -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 }