Trying to refactor the completion stack finding.

This commit is contained in:
Dave Halter committed 2016-07-24 17:06:54 +02:00
1 parent cd9a8705a2
commit 7f2f66f011
5 files changed
+76 -55

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ def setup_readline(namespace_module=__main__):
lines = common.splitlines(text)
position = (len(lines), len(lines[-1]))
name = get_on_completion_name(lines, position)
name = get_on_completion_name(interpreter._get_module(), position)
before = text[:len(text) - len(name)]
completions = interpreter.completions()
finally: