Mercurial > vim
comparison src/evalfunc.c @ 22355:0491b9cafd44 v8.2.1726
patch 8.2.1726: fuzzy matching only works on strings
Commit: https://github.com/vim/vim/commit/4f73b8e9cc83f647b34002554a8bdf9abec0a82f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 22 20:33:50 2020 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Sep 2020 20:45:04 +0200 |
parents | 6b385c2b9ff5 |
children | 0e231e8e70f8 |
comparison
equal
deleted
inserted
replaced
22354:19139cc50651 | 22355:0491b9cafd44 |
---|---|
751 {"matchadd", 2, 5, FEARG_1, ret_number, f_matchadd}, | 751 {"matchadd", 2, 5, FEARG_1, ret_number, f_matchadd}, |
752 {"matchaddpos", 2, 5, FEARG_1, ret_number, f_matchaddpos}, | 752 {"matchaddpos", 2, 5, FEARG_1, ret_number, f_matchaddpos}, |
753 {"matcharg", 1, 1, FEARG_1, ret_list_string, f_matcharg}, | 753 {"matcharg", 1, 1, FEARG_1, ret_list_string, f_matcharg}, |
754 {"matchdelete", 1, 2, FEARG_1, ret_number, f_matchdelete}, | 754 {"matchdelete", 1, 2, FEARG_1, ret_number, f_matchdelete}, |
755 {"matchend", 2, 4, FEARG_1, ret_number, f_matchend}, | 755 {"matchend", 2, 4, FEARG_1, ret_number, f_matchend}, |
756 {"matchfuzzy", 2, 2, FEARG_1, ret_list_string, f_matchfuzzy}, | 756 {"matchfuzzy", 2, 3, FEARG_1, ret_list_string, f_matchfuzzy}, |
757 {"matchfuzzypos", 2, 3, FEARG_1, ret_list_any, f_matchfuzzypos}, | |
757 {"matchlist", 2, 4, FEARG_1, ret_list_string, f_matchlist}, | 758 {"matchlist", 2, 4, FEARG_1, ret_list_string, f_matchlist}, |
758 {"matchstr", 2, 4, FEARG_1, ret_string, f_matchstr}, | 759 {"matchstr", 2, 4, FEARG_1, ret_string, f_matchstr}, |
759 {"matchstrpos", 2, 4, FEARG_1, ret_list_any, f_matchstrpos}, | 760 {"matchstrpos", 2, 4, FEARG_1, ret_list_any, f_matchstrpos}, |
760 {"max", 1, 1, FEARG_1, ret_any, f_max}, | 761 {"max", 1, 1, FEARG_1, ret_any, f_max}, |
761 {"menu_info", 1, 2, FEARG_1, ret_dict_any, | 762 {"menu_info", 1, 2, FEARG_1, ret_dict_any, |