From a31b83c5ca936686d06ed4ed9a75bdea639281e9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 28 May 2021 13:44:30 -0400 Subject: [PATCH] Don't ever send plain whitespace a search pattern --- piker/ui/_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_search.py b/piker/ui/_search.py index 61ee4a75..8d82ddfd 100644 --- a/piker/ui/_search.py +++ b/piker/ui/_search.py @@ -735,7 +735,7 @@ async def fill_results( text = bar.text() # print(f'search: {text}') - if not text: + if not text or text.isspace(): # print('idling') _search_active = trio.Event() break