Fix fuzzy match without no partial match

This commit is contained in:
hrsh7th
2023-02-14 22:41:28 +09:00
parent aae0c3e4e7
commit 6635b7aee5
2 changed files with 18 additions and 1 deletions

View File

@@ -128,7 +128,17 @@ matcher.match = function(input, word, option)
end
if #matches == 0 then
return 0, {}
matches = {
{
index = 1,
input_match_start = 1,
input_match_end = 1,
word_match_start = 1,
word_match_end = 1,
strict_ratio = 0,
fuzzy = false,
}
}
end
matcher.debug(word, matches)