From c8a05c78c9d1a32480a50f119ed7b4f9104a0d86 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Fri, 19 Jul 2024 16:08:43 -0400 Subject: Filter under/dunder members in bncompleter --- python/bncompleter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python') 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) -- cgit v1.3.1