1
0
forked from VimPlug/jedi

fuzzy_match and start_match are now match with fuzzy param

This commit is contained in:
Dave Halter
2020-03-01 18:03:13 +01:00
parent ccc1262a3e
commit a6ef8efb72
4 changed files with 20 additions and 21 deletions

View File

@@ -48,11 +48,7 @@ def filter_names(inference_state, completion_names, stack, like_name, fuzzy, cac
string = name.string_name
if settings.case_insensitive_completion:
string = string.lower()
if fuzzy:
match = helpers.fuzzy_match(string, like_name)
else:
match = helpers.start_match(string, like_name)
if match:
if helpers.match(string, like_name, fuzzy=fuzzy):
new = classes.Completion(
inference_state,
name,