mirror of
https://github.com/vim/vim.git
synced 2025-10-12 06:44:06 -04:00
patch 8.2.1726: fuzzy matching only works on strings
Problem: Fuzzy matching only works on strings. Solution: Support passing a dict. Add matchfuzzypos() to also get the match positions. (Yegappan Lakshmanan, closes #6947)
This commit is contained in:
@@ -753,7 +753,8 @@ static funcentry_T global_functions[] =
|
||||
{"matcharg", 1, 1, FEARG_1, ret_list_string, f_matcharg},
|
||||
{"matchdelete", 1, 2, FEARG_1, ret_number, f_matchdelete},
|
||||
{"matchend", 2, 4, FEARG_1, ret_number, f_matchend},
|
||||
{"matchfuzzy", 2, 2, FEARG_1, ret_list_string, f_matchfuzzy},
|
||||
{"matchfuzzy", 2, 3, FEARG_1, ret_list_string, f_matchfuzzy},
|
||||
{"matchfuzzypos", 2, 3, FEARG_1, ret_list_any, f_matchfuzzypos},
|
||||
{"matchlist", 2, 4, FEARG_1, ret_list_string, f_matchlist},
|
||||
{"matchstr", 2, 4, FEARG_1, ret_string, f_matchstr},
|
||||
{"matchstrpos", 2, 4, FEARG_1, ret_list_any, f_matchstrpos},
|
||||
|
Reference in New Issue
Block a user