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
@@ -80,7 +80,7 @@ class Completion:
self._code_lines = code_lines
# The first step of completions is to get the name
self._like_name = helpers.get_on_completion_name(code_lines, position)
self._like_name = helpers.get_on_completion_name(module, position)
# The actual cursor position is not what we need to calculate
# everything. We want the start of the name we're on.
self._position = position[0], position[1] - len(self._like_name)