Skip to content

Commit

Permalink
Prevent Python variable validation to get current word and position w…
Browse files Browse the repository at this point in the history
…hen doing completions
  • Loading branch information
dalthviz committed Dec 19, 2022
1 parent 7301955 commit 5d3ddf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/widgets/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ def is_special_character(move):
startpos = cursor.selectionStart()

# Find a valid Python variable name
if valid_python_variable:
if valid_python_variable and not completion:
match = re.findall(r'([^\d\W]\w*)', text, re.UNICODE)
if not match:
# This is assumed in several places of our codebase,
Expand Down

0 comments on commit 5d3ddf7

Please sign in to comment.