Changed declaration of ml_command_generator().
(ml_command_completion): use rl_completion_matches(). Patch provided by John R. Daily.
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
18 | #include "mail.h" | 18 | #include "mail.h" |
19 | 19 | ||
20 | static char **ml_command_completion __P((char *cmd, int start, int end)); | 20 | static char **ml_command_completion __P((char *cmd, int start, int end)); |
21 | static char *ml_command_generator __P((char *text, int state)); | 21 | static char *ml_command_generator __P((const char *text, int state)); |
22 | 22 | ||
23 | static volatile int _interrupted; | 23 | static volatile int _interrupted; |
24 | 24 | ||
... | @@ -218,7 +218,7 @@ ml_command_completion (char *cmd, int start, int end) | ... | @@ -218,7 +218,7 @@ ml_command_completion (char *cmd, int start, int end) |
218 | { | 218 | { |
219 | (void)end; | 219 | (void)end; |
220 | if (start == 0) | 220 | if (start == 0) |
221 | return completion_matches (cmd, ml_command_generator); | 221 | return rl_completion_matches (cmd, ml_command_generator); |
222 | return NULL; | 222 | return NULL; |
223 | } | 223 | } |
224 | 224 | ||
... | @@ -226,7 +226,7 @@ ml_command_completion (char *cmd, int start, int end) | ... | @@ -226,7 +226,7 @@ ml_command_completion (char *cmd, int start, int end) |
226 | * more readline | 226 | * more readline |
227 | */ | 227 | */ |
228 | char * | 228 | char * |
229 | ml_command_generator (char *text, int state) | 229 | ml_command_generator (const char *text, int state) |
230 | { | 230 | { |
231 | static int i, len; | 231 | static int i, len; |
232 | const char *name; | 232 | const char *name; | ... | ... |
-
Please register or sign in to post a comment