summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/buffers/thread.py4
-rw-r--r--alot/commands/thread.py2
2 files changed, 1 insertions, 5 deletions
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py
index faf3e3c2..16b9dae9 100644
--- a/alot/buffers/thread.py
+++ b/alot/buffers/thread.py
@@ -54,10 +54,6 @@ class ThreadBuffer(Buffer):
info['intersection_tags'] = self.translated_tags_str(intersection=True)
return info
- def get_selected_thread(self):
- """Return the displayed :class:`~alot.db.Thread`."""
- return self.thread
-
def rebuild(self):
try:
self.thread.refresh()
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 6f83083a..28edaa84 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -673,7 +673,7 @@ class PipeCommand(Command):
# get messages to pipe
if self.whole_thread:
- thread = ui.current_buffer.get_selected_thread()
+ thread = ui.current_buffer.thread
if not thread:
return
to_print = thread.get_messages().keys()