diff options
Diffstat (limited to 'alot/buffers.py')
-rw-r--r-- | alot/buffers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/buffers.py b/alot/buffers.py index 8dcb7352..36baf00a 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -111,6 +111,7 @@ class BufferlistBuffer(Buffer): return bufferlinewidget.get_buffer() def focus_first(self): + """Focus the first line in the buffer list.""" self.body.set_focus(0) @@ -441,9 +442,11 @@ class ThreadBuffer(Buffer): # needed for ui.get_deep_focus.. def get_focus(self): + "Get the focus from the underlying body widget." return self.body.get_focus() def set_focus(self, pos): + "Set the focus in the underlying body widget." logging.debug('setting focus to %s ', pos) self.body.set_focus(pos) @@ -658,6 +661,7 @@ class TagListBuffer(Buffer): self.taglist.set_focus(focusposition % len(displayedtags)) def focus_first(self): + """Focus the first line in the tag list.""" self.body.set_focus(0) def focus_last(self): |