We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 645df4c commit 5550217Copy full SHA for 5550217
bpython/cli.py
@@ -1732,7 +1732,8 @@ def idle(caller):
1732
1733
global stdscr
1734
1735
- importcompletion.find_coroutine()
+ if importcompletion.find_coroutine():
1736
+ curses.ungetch('')
1737
caller.statusbar.check()
1738
1739
if DO_RESIZE:
bpython/importcompletion.py
@@ -103,13 +103,15 @@ def find_coroutine():
103
global fully_loaded
104
105
if fully_loaded:
106
- return
+ return None
107
108
try:
109
find_iterator.next()
110
except StopIteration:
111
fully_loaded = True
112
113
+ return True
114
+
115
def reload():
116
"""Refresh the list of known modules."""
117
modules.clear()
0 commit comments