We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe461ab commit 494a578Copy full SHA for 494a578
bpython/urwid.py
@@ -45,6 +45,7 @@
45
46
from bpython import args as bpargs, repl
47
from bpython.formatter import theme_map
48
+from bpython.importcompletion import find_coroutine
49
50
import urwid
51
@@ -479,6 +480,14 @@ def start(main_loop, user_data):
479
480
repl.write('\n')
481
myrepl.start()
482
483
+ # This bypasses main_loop.set_alarm_in because we must *not*
484
+ # hit the draw_screen call (it's unnecessary and slow).
485
+ def run_find_coroutine():
486
+ if find_coroutine():
487
+ main_loop.event_loop.alarm(0, run_find_coroutine)
488
+
489
+ run_find_coroutine()
490
491
loop.set_alarm_in(0, start)
492
493
loop.run()
0 commit comments