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  
    759759static char **
    760760flex_complete(char *text, int start, int end)
    761761{
     762#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
     763        rl_completion_append_character ='\0';
     764        rl_completion_suppress_append = 0;
     765#endif
    762766        Py_XDECREF(begidx);
    763767        Py_XDECREF(endidx);
    764768        begidx = PyInt_FromLong((long) start);
     
    799803        rl_attempted_completion_function = (CPPFunction *)flex_complete;
    800804        /* Set Python word break characters */
    801805        rl_completer_word_break_characters =
    802                 strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
     806                strdup(" \t\n`!@#%^&*()=+[{]}\\|;:,<>?");
    803807                /* All nonalphanums except '.' */
    804 #ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
    805         rl_completion_append_character ='\0';
    806 #endif
    807808
    808809        begidx = PyInt_FromLong(0L);
    809810        endidx = PyInt_FromLong(0L);