1
0
forked from VimPlug/jedi

Remove path argument from completions, because it's really not needed anymore.

This commit is contained in:
Dave Halter
2016-06-23 16:11:23 +02:00
parent 9225db084a
commit 672bf9908c
2 changed files with 20 additions and 18 deletions

View File

@@ -160,12 +160,11 @@ class Script(object):
:rtype: list of :class:`classes.Completion`
"""
debug.speed('completions start')
path = self._user_context.get_path_until_cursor()
completion = Completion(
self._evaluator, self._parser, self._code_lines,
self._pos, self.call_signatures
)
completions = completion.completions(path)
completions = completion.completions()
debug.speed('completions end')
return completions