diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-08-27 11:21:37 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-08-27 11:21:37 +0100 |
commit | 3c6566a0fbd4c0317daa1c84cc24ecf83f92a285 (patch) | |
tree | c56886581aa5a9fade2af977147161d42e45586a /alot/buffer.py | |
parent | 26d93cbe28827f0e01a3a511a0383e213a1e00d5 (diff) | |
parent | 8014a371423b7195fb686b5b39c776fc95064914 (diff) |
Merge branch 'develop'
Conflicts:
INSTALL
README
USAGE
Diffstat (limited to 'alot/buffer.py')
-rw-r--r-- | alot/buffer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/buffer.py b/alot/buffer.py index 4d6eca6d..eb476530 100644 --- a/alot/buffer.py +++ b/alot/buffer.py @@ -124,7 +124,8 @@ class EnvelopeBuffer(Buffer): for part in self.mail.walk(): if not part.is_multipart(): if part.get_content_maintype() != 'text': - lines.append(widgets.AttachmentWidget(part, selectable=False)) + lines.append(widgets.AttachmentWidget(part, + selectable=False)) self.attachment_wgt = urwid.Pile(lines) displayed_widgets.append(self.attachment_wgt) @@ -251,10 +252,10 @@ class ThreadBuffer(Buffer): for mw in self.get_message_widgets(): msg = mw.get_message() if msg.matches(querystring): + mw.fold(visible=True) if 'unread' in msg.get_tags(): msg.remove_tags(['unread']) self.ui.apply_command(command.FlushCommand()) - mw.fold(visible=True) def get_message_widgets(self): return self.body.body.contents |