From b9b1b1b8f3410b8023cb3898bfc0f2adbb4f41b0 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 11 May 2022 15:11:18 +0200 Subject: commands/globals:BufferCloseCommand: drop unused redraw param Drop it also from the corresponding UI functions, where it does not do anything. --- alot/ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'alot/ui.py') diff --git a/alot/ui.py b/alot/ui.py index 9e6de9eb..de1ca0ce 100644 --- a/alot/ui.py +++ b/alot/ui.py @@ -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 -- cgit v1.2.3