We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8ce916 commit 6005b72Copy full SHA for 6005b72
bpython/autocomplete.py
@@ -398,13 +398,10 @@ def matches(
398
399
assert "." in r.word
400
401
- for i in range(1, len(r.word) + 1):
402
- if r.word[-i] == "[":
403
- i -= 1
404
- break
405
- methodtext = r.word[-i:]
+ i = r.word.rfind("[") + 1
+ methodtext = r.word[i:]
406
matches = {
407
- "".join([r.word[:-i], m])
+ "".join([r.word[:i], m])
408
for m in self.attr_matches(methodtext, locals_)
409
}
410
0 commit comments