summaryrefslogtreecommitdiff
path: root/alot/walker.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/walker.py
parentc2cbc549b69e8548e886caaf0a0a10d0964d1a82 (diff)
refresh search results if toggletag removes a hit
Diffstat (limited to 'alot/walker.py')
-rw-r--r--alot/walker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/alot/walker.py b/alot/walker.py
index b3cedffd..b4efb228 100644
--- a/alot/walker.py
+++ b/alot/walker.py
@@ -28,7 +28,7 @@ class IteratorWalker(urwid.ListWalker):
def remove(self, obj):
self.lines.remove(obj)
self.set_focus(self.focus % len(self.lines))
-
+ self._modified()
def _get_at_pos(self, pos):
if pos < 0: # pos too low
@@ -56,3 +56,6 @@ class IteratorWalker(urwid.ListWalker):
next_widget = None
self.empty = True
return next_widget
+
+ def get_lines(self):
+ return self.lines