REPL completion is working again partially. There's some progress at least.

This commit is contained in:
Dave Halter
2016-06-29 08:49:20 +02:00
parent 52c42c3392
commit a3b263a599
7 changed files with 41 additions and 35 deletions
+2
View File
@@ -559,6 +559,8 @@ def global_names_dict_generator(evaluator, scope, position):
for names_dict in scope.names_dicts(True):
yield names_dict, position
if hasattr(scope, 'resets_positions'):
position = None
if scope.type == 'funcdef':
# The position should be reset if the current scope is a function.
in_func = True