diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2013-05-30 17:50:34 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-05-30 17:50:34 +0100 |
commit | 62d7536185d173a2766aba8f3e2c7b1b63fbc4f7 (patch) | |
tree | f2e9fce9be154e60a0a31266d4d3fca9d0f49724 /alot/buffers.py | |
parent | 5820ef46cfff2799abbc63e47443ee82692b25d4 (diff) |
add ThreadBuffer.focus_last
Diffstat (limited to 'alot/buffers.py')
-rw-r--r-- | alot/buffers.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alot/buffers.py b/alot/buffers.py index f633f171..44c4c4aa 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -434,6 +434,9 @@ class ThreadBuffer(Buffer): """set focus to first message of thread""" self.body.set_focus(self._nested_tree.root) + def focus_last(self): + self.body.set_focus(next(self._nested_tree.positions(reverse=True))) + def _sanitize_position(self, pos): return self._nested_tree._sanitize_position(pos, self._nested_tree._tree) |