remove constant ITEMS_TO_EXCLUDE

This commit is contained in:
Amber 2024-01-31 12:00:01 +01:00
parent c16788d90b
commit a92c6e8327
1 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ class NerdTree():
d.setdefault('not_readable', 1)
for item in items:
if item in _tree_repr.ITEMS_TO_EXCLUDE:
if item in self.opts.get('items_to_exclude') or []:
continue
abs_path_item = startpath+item
@ -205,8 +205,8 @@ class NerdTree():
items = rootnode.get('children') or []
for n, item in enumerate(items):
if item['name'] in _tree_repr.ITEMS_TO_EXCLUDE:
continue
# if item['name'] in _tree_repr.ITEMS_TO_EXCLUDE:
# continue
islast = (n==len(items) -1)