Skip to content

Commit 7f9d09c

Browse files
antocunieendebakpt
andauthored
Update Lib/_pyrepl/fancycompleter.py
Co-authored-by: Pieter Eendebak <[email protected]>
1 parent fdca77e commit 7f9d09c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/_pyrepl/fancycompleter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def colorize_matches(self, names, values):
140140
in enumerate(zip(names, values))]
141141
# We add a space at the end to prevent the automatic completion of the
142142
# common prefix, which is the ANSI escape sequence.
143-
return matches + [' ']
143+
matches.append(' ')
144+
return matches
144145

145146
def color_for_obj(self, i, name, value):
146147
t = type(value)

0 commit comments

Comments
 (0)