diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-05-11 15:11:18 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-05-11 15:11:18 +0200 |
commit | b9b1b1b8f3410b8023cb3898bfc0f2adbb4f41b0 (patch) | |
tree | 9dd6963f5f08c3c197a7502dbd6751b429b56b1c /alot/ui.py | |
parent | ba50cd942fd80dfca6e86a573e01b00b98b1f5f9 (diff) |
commands/globals:BufferCloseCommand: drop unused redraw param
Drop it also from the corresponding UI functions, where it does not do
anything.
Diffstat (limited to 'alot/ui.py')
-rw-r--r-- | alot/ui.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -526,7 +526,7 @@ class UI: if posthook is not None: posthook(ui=self, dbm=self.dbman, buf=buf) - def buffer_close(self, buf, redraw=True): + def buffer_close(self, buf): """ closes given :class:`~alot.buffers.Buffer`. @@ -549,7 +549,7 @@ class UI: buffers.remove(buf) offset = settings.get('bufferclose_focus_offset') nextbuffer = buffers[(index + offset) % len(buffers)] - self.buffer_focus(nextbuffer, redraw) + self.buffer_focus(nextbuffer) buf.cleanup() success = True else: @@ -562,7 +562,7 @@ class UI: if posthook is not None: posthook(ui=self, dbm=self.dbman, buf=buf, success=success) - def buffer_focus(self, buf, redraw=True): + def buffer_focus(self, buf): """focus given :class:`~alot.buffers.Buffer`.""" # call pre_buffer_focus hook |