summaryrefslogtreecommitdiff
path: root/alot/buffer.py
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-05-27 10:48:44 +0100
committerpazz <patricktotzke@gmail.com>2011-05-27 10:48:44 +0100
commit31aaff7d7a436570f5364954e71d07da19c994df (patch)
treeabf81500c841e19242c9e2105bf082e7f9bf5fb9 /alot/buffer.py
parentc2cbc549b69e8548e886caaf0a0a10d0964d1a82 (diff)
refresh search results if toggletag removes a hit
Diffstat (limited to 'alot/buffer.py')
-rw-r--r--alot/buffer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/buffer.py b/alot/buffer.py
index 03e0cf8a..c25e0b66 100644
--- a/alot/buffer.py
+++ b/alot/buffer.py
@@ -110,10 +110,10 @@ class SearchBuffer(Buffer):
self.isinitialized = True
self.result_count = self.dbman.count_messages(self.querystring)
- tids = self.dbman.search_thread_ids(self.querystring)
- self.threadlist = IteratorWalker(tids.__iter__(), widgets.ThreadlineWidget,
+ self.tids = self.dbman.search_thread_ids(self.querystring)
+ self.threadlist = IteratorWalker(self.tids.__iter__(), widgets.ThreadlineWidget,
dbman=self.dbman)
- self.ui.logger.debug(self.threadlist.lines)
+ self.ui.logger.debug(len(self.tids))
self.original_widget = urwid.ListBox(self.threadlist)
self.ui.logger.debug(self.threadlist.lines)