From a9e8f3271055740c9b96bb83483a09381f15312b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 25 Apr 2020 18:10:25 +0200 Subject: buffer: drop the ui parameter when not needed --- alot/commands/globals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alot/commands/globals.py') diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 9051d61b..19bc0086 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -573,7 +573,7 @@ class TagListCommand(Command): buf.rebuild() ui.buffer_focus(buf) else: - ui.buffer_open(buffers.TagListBuffer(ui, tags, self.filtfun)) + ui.buffer_open(buffers.TagListBuffer(tags, self.filtfun)) @registerCommand(MODE, 'namedqueries') @@ -588,7 +588,7 @@ class NamedQueriesCommand(Command): Command.__init__(self, **kwargs) def apply(self, ui): - ui.buffer_open(buffers.NamedQueriesBuffer(ui, self.filtfun)) + ui.buffer_open(buffers.NamedQueriesBuffer(ui.dbman, self.filtfun)) @registerCommand(MODE, 'flush') -- cgit v1.2.3