Ticket #19700: patch-Modules-readline.c.diff
File patch-Modules-readline.c.diff, 882 bytes (added by stromnov (Andrey Stromnov), 15 years ago) |
---|
-
Modules/readline.c
old new 759 759 static char ** 760 760 flex_complete(char *text, int start, int end) 761 761 { 762 #ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER 763 rl_completion_append_character ='\0'; 764 rl_completion_suppress_append = 0; 765 #endif 762 766 Py_XDECREF(begidx); 763 767 Py_XDECREF(endidx); 764 768 begidx = PyInt_FromLong((long) start); … … 799 803 rl_attempted_completion_function = (CPPFunction *)flex_complete; 800 804 /* Set Python word break characters */ 801 805 rl_completer_word_break_characters = 802 strdup(" \t\n` ~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");806 strdup(" \t\n`!@#%^&*()=+[{]}\\|;:,<>?"); 803 807 /* All nonalphanums except '.' */ 804 #ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER805 rl_completion_append_character ='\0';806 #endif807 808 808 809 begidx = PyInt_FromLong(0L); 809 810 endidx = PyInt_FromLong(0L);