summaryrefslogtreecommitdiff
path: root/alot/commands/namedqueries.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/namedqueries.py')
-rw-r--r--alot/commands/namedqueries.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/namedqueries.py b/alot/commands/namedqueries.py
index 362e2bb6..f10724a8 100644
--- a/alot/commands/namedqueries.py
+++ b/alot/commands/namedqueries.py
@@ -20,11 +20,11 @@ class NamedqueriesSelectCommand(Command):
self._filt = filt
Command.__init__(self, **kwargs)
- def apply(self, ui):
+ async def apply(self, ui):
query_name = ui.current_buffer.get_selected_query()
query = ['query:"%s"' % query_name]
if self._filt:
query.extend(['and'] + self._filt)
cmd = SearchCommand(query=query)
- ui.apply_command(cmd)
+ await ui.apply_command(cmd)