From 27faf026bdf7803cfac69812cf30bfd853ec45b0 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 7 Oct 2015 01:21:04 +0200 Subject: [PATCH] small matching improvement --- completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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