diff options
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) |