diff options
author | Fritz Elfert <felfert@to.com> | 2002-03-18 06:13:46 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-03-18 06:13:46 +0000 |
commit | d5e2ee3065c6be51230668ff44eb85d58ca0ad58 (patch) | |
tree | 18a2a9cfedc7b3f273e92d6033554ae146b7d315 /plpftp | |
parent | 23f25b04b95f08f5fc3aeaf9ea745326246dec9f (diff) | |
download | plptools-d5e2ee3065c6be51230668ff44eb85d58ca0ad58.tar.gz plptools-d5e2ee3065c6be51230668ff44eb85d58ca0ad58.tar.bz2 plptools-d5e2ee3065c6be51230668ff44eb85d58ca0ad58.zip |
Prevent readline > 4.2 from looping.
Diffstat (limited to 'plpftp')
-rw-r--r-- | plpftp/ftp.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |