Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e566bda

Browse files
committed
Merged revisions 75533 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ................ r75533 | antoine.pitrou | 2009-10-19 20:22:37 +0200 (lun., 19 oct. 2009) | 14 lines Merged revisions 75531-75532 via svnmerge from svn+ssh://[email protected]/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. ........ ................
1 parent aaf85ce commit e566bda

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Core and Builtins
3030
Library
3131
-------
3232

33+
- Issue #5833: Fix extra space character in readline completion with the
34+
GNU readline library version 6.0.
35+
3336
- Issue #6894: Fixed the issue urllib2 doesn't respect "no_proxy" environment
3437

3538
- Issue #7082: When falling back to the MIME 'name' parameter, the

Modules/readline.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,10 @@ on_completion(const char *text, int state)
758758
static char **
759759
flex_complete(char *text, int start, int end)
760760
{
761+
#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
762+
rl_completion_append_character ='\0';
763+
rl_completion_suppress_append = 0;
764+
#endif
761765
Py_XDECREF(begidx);
762766
Py_XDECREF(endidx);
763767
begidx = PyLong_FromLong((long) start);
@@ -800,9 +804,6 @@ setup_readline(void)
800804
rl_completer_word_break_characters =
801805
strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
802806
/* All nonalphanums except '.' */
803-
#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
804-
rl_completion_append_character ='\0';
805-
#endif
806807

807808
begidx = PyLong_FromLong(0L);
808809
endidx = PyLong_FromLong(0L);

0 commit comments

Comments
 (0)