summaryrefslogtreecommitdiff
path: root/alot/commands/search.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-19 18:27:49 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-19 18:27:49 +0200
commit708f33e83c9cf8a128f0765d49cc38ee6ca0066d (patch)
tree37c04f318187d59e0b336e4a1ac597a850a59448 /alot/commands/search.py
parentab5af955801972f313f6b7fb541d790b7a1a22bb (diff)
buffers/search: with walker.py
It is only ever called from here, separating them makes little sense.
Diffstat (limited to 'alot/commands/search.py')
-rw-r--r--alot/commands/search.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/alot/commands/search.py b/alot/commands/search.py
index a20b2220..3741f4c2 100644
--- a/alot/commands/search.py
+++ b/alot/commands/search.py
@@ -189,13 +189,7 @@ class TagCommand(Command):
hitcount_after = ui.dbman.count_messages(testquery)
# update total result count
if not self.allm:
- if hitcount_after == 0:
- logging.debug('remove thread from result list: %s', thread)
- if threadline_widget in searchbuffer.threadlist:
- # remove this thread from result list
- searchbuffer.threadlist.remove(threadline_widget)
- else:
- threadline_widget.rebuild()
+ threadline_widget.rebuild()
searchbuffer.result_count = searchbuffer.dbman.count_messages(
searchbuffer.querystring)
else: