summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2013-02-02 21:34:06 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2013-03-03 13:48:21 +0000
commit49b58c6b53a1cf8296855969a64363990e32e289 (patch)
tree5c334fbe018faa068792c17bf6e529a2af3cc7bf /alot
parente83f71a8bae2082e002c57f87c4b4bcb01c21202 (diff)
fix collapse of selected message in thread buffer
.. which was based on deprecated ThreadBuffer.get_selection (renamed to get_selected_messagetree)
Diffstat (limited to 'alot')
-rw-r--r--alot/commands/thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 99ef76b7..4d12b52f 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -423,7 +423,7 @@ class ChangeDisplaymodeCommand(Command):
lines = []
tbuffer = ui.current_buffer
if not self.all:
- lines.append(ui.current_buffer.get_selection())
+ lines.append(ui.current_buffer.get_selected_messagetree())
focuspos = tbuffer.get_focus()[1]
messagetrees = [tbuffer.messagetree_at_position(focuspos)]
else: