tcl-tclreadline/tcl-tclreadline-2.1.0-rl_co...

16 lines
658 B
Diff

Patch by Dann Frazier <dannf@debian.org> for tclreadline >= 2.1.0 which makes tclreadline
using rl_completion_matches() instead of the deprecated completion_matches(). For further
information, please have a look to Debian bug ID #226565.
--- tclreadline-2.1.0/tclreadline.c 2000-09-20 19:44:34.000000000 +0200
+++ tclreadline-2.1.0/tclreadline.c.rl_completion 2010-04-06 01:41:08.000000000 +0200
@@ -745,7 +745,7 @@
}
if (!matches && tclrl_use_builtin_completer) {
- matches = completion_matches(text, TclReadline0generator);
+ matches = rl_completion_matches(text, (rl_compentry_func_t *)TclReadline0generator);
}
return matches;