We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399692f commit 8d33d45Copy full SHA for 8d33d45
1 file changed
bpython/cli.py
@@ -1331,6 +1331,12 @@ def tab(self):
1331
self.print_line(self.s)
1332
return True
1333
1334
+ if not importcompletion.modules:
1335
+ line = self.s.lstrip()
1336
+ if line.startswith('from ') or line.startswith('import '):
1337
+ self.statusbar.message('Scanning for modules...')
1338
+ importcompletion.reload()
1339
+
1340
if not OPTS.auto_display_list and not self.list_win_visible:
1341
self.complete(tab=True)
1342
0 commit comments