1
0
forked from VimPlug/jedi

Fix string completion issue, fixes #1528

This commit is contained in:
Dave Halter
2020-03-26 15:47:27 +01:00
parent bb9731b561
commit 604029568c
2 changed files with 6 additions and 1 deletions

View File

@@ -457,6 +457,8 @@ def _extract_string_while_in_string(leaf, position):
if leaf.line == position[0]:
kwargs['endpos'] = position[1] - leaf.column
match = _string_start.match(leaf.value, **kwargs)
if not match:
return None, None, None
start = match.group(0)
if leaf.line == position[0] and position[1] < leaf.column + match.end():
return None, None, None