aboutsummaryrefslogtreecommitdiffstats
path: root/plpftp/ftp.cc
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2000-11-11 21:20:52 +0000
committerFritz Elfert <felfert@to.com>2000-11-11 21:20:52 +0000
commit9a19a32e659f26c046d0621127ebaf63b4b73b69 (patch)
treef29abeb8abf7393c95469e6512a08c7983ec2472 /plpftp/ftp.cc
parent415f5bdd83b9c930d67a54aba77bc14b48ee72e6 (diff)
downloadplptools-9a19a32e659f26c046d0621127ebaf63b4b73b69.tar.gz
plptools-9a19a32e659f26c046d0621127ebaf63b4b73b69.tar.bz2
plptools-9a19a32e659f26c046d0621127ebaf63b4b73b69.zip
Fixed hang in Mail subdirectory.
Corrected missing calculation for link-counts of directories.
Diffstat (limited to 'plpftp/ftp.cc')
-rw-r--r--plpftp/ftp.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/plpftp/ftp.cc b/plpftp/ftp.cc
index 41fa429..27c9fac 100644
--- a/plpftp/ftp.cc
+++ b/plpftp/ftp.cc
@@ -55,6 +55,7 @@ extern "C" {
#if HAVE_LIBHISTORY
#include <readline/history.h>
#endif
+#include "rlcrap.h"
}
#endif
@@ -1008,7 +1009,7 @@ do_completion(char *text, int start, int end)
rl_completion_entry_function = (Function *)null_completion;
if (start == 0)
- matches = completion_matches(text, (CPFunction *)command_generator);
+ matches = completion_matches(text, cmdgen_ptr);
else {
int idx = 0;
char *name;
@@ -1029,7 +1030,7 @@ do_completion(char *text, int start, int end)
maskAttr = rfsv::PSI_A_DIR;
}
- matches = completion_matches(text, (CPFunction *)filename_generator);
+ matches = completion_matches(text, fnmgen_ptr);
}
return matches;
}
@@ -1042,6 +1043,7 @@ initReadline(void)
rl_readline_name = "plpftp";
rl_completion_entry_function = (Function *)null_completion;
rl_attempted_completion_function = (CPPFunction *)do_completion;
+ rlcrap_setpointers(command_generator, filename_generator);
#endif
}