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:
Berker Peksag 2015-07-28 00:06:31 +03:00
parent 0bd5fb0112
commit aaf6114b37
3 changed files with 17 additions and 4 deletions

View file

@ -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)