]> git.pld-linux.org Git - packages/lftp.git/blob - lftp-readline.patch
- release 3.
[packages/lftp.git] / lftp-readline.patch
1 --- lftp-2.3.9.orig/src/complete.cc     Fri Dec  8 16:30:37 2000
2 +++ lftp-2.3.9/src/complete.cc  Sat Apr 14 05:38:44 2001
3 @@ -39,7 +39,11 @@
4  #include "url.h"
5  
6  CDECL_BEGIN
7 +#undef __P
8 +#define __P(args) args
9  #include "readline/readline.h"
10 +#undef __P
11 +#define __P(args) args __THROW
12  CDECL_END
13  
14  static char *bash_dequote_filename (char *text, int quote_char);
15 @@ -575,7 +579,7 @@
16     text=bash_dequote_filename(text, quoted);
17     len=strlen(text);
18  
19 -   char **matches=completion_matches(text,(CPFunction*)generator);
20 +   char **matches=rl_completion_matches(text,(CPFunction*)generator);
21  
22     glob_res=0;
23     if(rg)
24 @@ -952,8 +956,6 @@
25  
26  int   lftp_complete_remote(int count,int key)
27  {
28 -   extern Function *rl_last_func;
29 -
30     if(rl_last_func == (Function*)lftp_complete_remote)
31        rl_last_func = (Function*)rl_complete;
32  
This page took 0.039727 seconds and 3 git commands to generate.