mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #23441: rcompleter now prints a tab character instead of displaying
possible completions for an empty word. Initial patch by Martin Sekera.
This commit is contained in:
parent
0bd5fb0112
commit
aaf6114b37
3 changed files with 17 additions and 4 deletions
|
|
@ -73,6 +73,12 @@ class Completer:
|
|||
if self.use_main_ns:
|
||||
self.namespace = __main__.__dict__
|
||||
|
||||
if not text.strip():
|
||||
if state == 0:
|
||||
return '\t'
|
||||
else:
|
||||
return None
|
||||
|
||||
if state == 0:
|
||||
if "." in text:
|
||||
self.matches = self.attr_matches(text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue