From 682a1a5cc1deca08b23e0f98f26fe6020254090d Mon Sep 17 00:00:00 2001 From: pazz Date: Sun, 14 Aug 2011 19:46:37 +0100 Subject: fix: issue with initial searches for * for the searchstring '*' an orly? prompt is hardcoded as these tend to take long. Prompts don't work if the ui is not properly set up. --- alot/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot') diff --git a/alot/command.py b/alot/command.py index 711bfd88..3f7578a6 100644 --- a/alot/command.py +++ b/alot/command.py @@ -101,7 +101,7 @@ class SearchCommand(Command): def apply(self, ui): if self.query: - if self.query == '*': + if self.query == '*' and ui.current_buffer: s = 'really search for all threads? This takes a while..' if not ui.choice(s) == 'yes': return -- cgit v1.2.3