diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-05-24 13:55:14 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-05-24 13:55:32 +0200 |
commit | b1f6be9d1808406c94c5c033b50abb5f7517e82b (patch) | |
tree | 76ada4ba4cc94d929047cc02e2b6f5cfe420c93d /alot/buffers | |
parent | 2b1f282a30a0a3f5888a88457ab0b1c7e8e5b1a7 (diff) |
taglist: drop the useless filtfun parameter
Diffstat (limited to 'alot/buffers')
-rw-r--r-- | alot/buffers/taglist.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alot/buffers/taglist.py b/alot/buffers/taglist.py index d97876df..bb344c45 100644 --- a/alot/buffers/taglist.py +++ b/alot/buffers/taglist.py @@ -13,8 +13,7 @@ class TagListBuffer(Buffer): modename = 'taglist' - def __init__(self, alltags=None, filtfun=lambda x: x): - self.filtfun = filtfun + def __init__(self, alltags=None): self.tags = alltags or [] self.isinitialized = False self.rebuild() @@ -29,7 +28,7 @@ class TagListBuffer(Buffer): self.isinitialized = True lines = list() - displayedtags = sorted((t for t in self.tags if self.filtfun(t)), + displayedtags = sorted((t for t in self.tags if t), key=str.lower) for (num, b) in enumerate(displayedtags): if (num % 2) == 0: |