Fix string completion issue, fixes #1528

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

No files matched your search

+2
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