Exit if search query is less than two characters long

This commit is contained in:
Les De Ridder 2019-03-24 08:09:41 +01:00
parent a4da9a98cb
commit 9892e41937
1 changed files with 1 additions and 1 deletions

2
saury
View File

@ -67,7 +67,7 @@ end
function aur_search
set query $argv
if test (string length "$query") -lt 1
if test (string length "$query") -lt 2
error "search query must be at least 2 characters long"
end