From d5e2ee3065c6be51230668ff44eb85d58ca0ad58 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 18 Mar 2002 06:13:46 +0000 Subject: Prevent readline > 4.2 from looping. --- plpftp/ftp.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plpftp') diff --git a/plpftp/ftp.cc b/plpftp/ftp.cc index 1b0545a..9323596 100644 --- a/plpftp/ftp.cc +++ b/plpftp/ftp.cc @@ -1102,6 +1102,9 @@ do_completion(const char *text, int start, int end) rl_completion_entry_function = FUNCAST(null_completion); rl_completion_append_character = ' '; +#if (READLINE_VERSION >= 402) + rl_attempted_completion_over = 1; +#endif if (start == 0) { #if HAVE_LIBREADLINE @@ -1165,6 +1168,9 @@ initReadline(void) #if (READLINE_VERSION < 402) rlcrap_setpointers(command_generator, filename_generator); #endif +#if (READLINE_VERSION >= 402) + rl_basic_word_break_characters = " \t\n\"\\'`@><=;|&{("; +#endif #endif } -- cgit v1.2.3