2009-12-21 22:06:46 +00:00
|
|
|
Index: Modules/readline.c
|
|
|
|
===================================================================
|
|
|
|
--- Modules/readline.c.orig 2008-11-04 21:43:31.000000000 +0100
|
|
|
|
+++ Modules/readline.c 2009-12-02 19:40:01.000000000 +0100
|
|
|
|
@@ -759,6 +759,10 @@ on_completion(const char *text, int stat
|
2009-11-16 09:06:23 +00:00
|
|
|
static char **
|
|
|
|
flex_complete(char *text, int start, int end)
|
|
|
|
{
|
|
|
|
+#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
|
|
|
+ rl_completion_append_character ='\0';
|
|
|
|
+ rl_completion_suppress_append = 0;
|
|
|
|
+#endif
|
|
|
|
Py_XDECREF(begidx);
|
|
|
|
Py_XDECREF(endidx);
|
|
|
|
begidx = PyInt_FromLong((long) start);
|
2009-12-21 22:06:46 +00:00
|
|
|
@@ -801,9 +805,6 @@ setup_readline(void)
|
2009-11-16 09:06:23 +00:00
|
|
|
rl_completer_word_break_characters =
|
2009-12-21 22:06:46 +00:00
|
|
|
strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
|
2009-11-16 09:06:23 +00:00
|
|
|
/* All nonalphanums except '.' */
|
|
|
|
-#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
|
|
|
- rl_completion_append_character ='\0';
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
begidx = PyInt_FromLong(0L);
|
|
|
|
endidx = PyInt_FromLong(0L);
|