summaryrefslogtreecommitdiff
path: root/alot/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/command.py')
-rw-r--r--alot/command.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/alot/command.py b/alot/command.py
index 56cdd591..55ab9c51 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -73,10 +73,12 @@ class OpenThreadCommand(Command):
def apply(self, ui):
if not self.thread:
self.thread = ui.current_buffer.get_selected_thread()
+ query = ui.current_buffer.querystring
ui.logger.info('open thread view for %s' % self.thread)
sb = buffer.ThreadBuffer(ui, self.thread)
ui.buffer_open(sb)
+ sb.unfold_matching(query)
class SearchCommand(Command):