Fix string completion issue, fixes #1528
This commit is contained in:
1 parent
bb9731b561
commit
604029568c
2 files changed
+6
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user