diff --git a/completion.lua b/completion.lua index f33d6d3..8471ebd 100644 --- a/completion.lua +++ b/completion.lua @@ -28,7 +28,7 @@ function fuzzy(input) if match[1] then local rating = 1 for i=3,getn(match) do - rating = rating * max(strlen(match[i]), 1) + rating = rating * strlen(match[i]) + 1 end return rating end