diff --git a/main.go b/main.go index cec432d..5f77a19 100644 --- a/main.go +++ b/main.go @@ -756,6 +756,10 @@ func (f *TMainForm) OnQueryExecute(sender vcl.IObject) { queryString = f.queryInput.SelText() // Just the selected text } + if strings.TrimSpace(queryString) == "" { + return // prevent blank query + } + // Execute node := f.Buckets.Selected() if node == nil {