summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-07-19 16:08:43 -0400
committerJosh Ferrell <josh@vector35.com>2024-07-19 16:08:43 -0400
commitc8a05c78c9d1a32480a50f119ed7b4f9104a0d86 (patch)
tree81e23323b9fe4edf0a183ccd1e9ed3019c2d835f /python
parent04b58f9cbcc4c4f6bb75ddb13225c2dcfb3d989e (diff)
Filter under/dunder members in bncompleter
Diffstat (limited to 'python')
-rw-r--r--python/bncompleter.py3
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)