diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/bncompleter.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/bncompleter.py b/python/bncompleter.py index 4fe9ed73..56d279b2 100644 --- a/python/bncompleter.py +++ b/python/bncompleter.py @@ -202,8 +202,7 @@ class Completer: while True: for word in words: score = fuzzy_match(word, attr) - if score is not None: - # if (word[:n] == attr and not (noprefix and word[:n + 1] == noprefix)): + if score is not None and (word[:n] == attr and not (noprefix and word[:n + 1] == noprefix)): match = f"{expr}.{word}" try: val = inspect.getattr_static(thisobject, word) |
