diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-19 18:22:37 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-10-19 18:22:37 (GMT) |
commit | dc0900b525b6c7fc2e07c4670ef1452a6d74a09c (patch) | |
tree | 5959e39be0812235a6c036ce8faf8d610b64712e /Modules/readline.c | |
parent | 723357e0145f31505f9d35effc28803c06404829 (diff) | |
download | cpython-dc0900b525b6c7fc2e07c4670ef1452a6d74a09c.zip cpython-dc0900b525b6c7fc2e07c4670ef1452a6d74a09c.tar.gz cpython-dc0900b525b6c7fc2e07c4670ef1452a6d74a09c.tar.bz2 |
Merged revisions 75531-75532 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75531 | antoine.pitrou | 2009-10-19 20:17:18 +0200 (lun., 19 oct. 2009) | 4 lines
Issue #5833: Fix extra space character in readline completion with the
GNU readline library version 6.0.
........
r75532 | antoine.pitrou | 2009-10-19 20:20:21 +0200 (lun., 19 oct. 2009) | 3 lines
NEWS entry for r75531.
........
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 03c95e3..51844f7 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -800,6 +800,10 @@ on_completion(const char *text, int state) 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 = PyLong_FromLong((long) start); @@ -842,9 +846,6 @@ setup_readline(void) rl_completer_word_break_characters = strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?"); /* All nonalphanums except '.' */ -#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER - rl_completion_append_character ='\0'; -#endif begidx = PyLong_FromLong(0L); endidx = PyLong_FromLong(0L); |