1
0
forked from VimPlug/jedi

Don't add quotes after paths if they are already there

This commit is contained in:
Dave Halter
2019-08-10 18:37:10 +02:00
parent 0a84678a60
commit 3d0ac09fc9
3 changed files with 29 additions and 22 deletions

View File

@@ -95,6 +95,7 @@ class Completion:
self._like_name = helpers.get_on_completion_name(self._module_node, code_lines, position)
# The actual cursor position is not what we need to calculate
# everything. We want the start of the name we're on.
self._original_position = position
self._position = position[0], position[1] - len(self._like_name)
self._call_signatures_callback = call_signatures_callback
@@ -104,7 +105,8 @@ class Completion:
if string is not None:
completions = list(file_name_completions(
self._evaluator, self._module_context, start_leaf, string,
self._like_name, self._call_signatures_callback
self._like_name, self._call_signatures_callback,
self._code_lines, self._original_position
))
if completions:
return completions