1
0
forked from aniani/vim

patch 8.2.4939: matchfuzzypos() with "matchseq" does not have all positions

Problem:    matchfuzzypos() with "matchseq" does not have all positions.
Solution:   Also add a position for white space. (closes #10404)
This commit is contained in:
zeertzjq
2022-05-11 14:15:37 +01:00
committed by Bram Moolenaar
parent a59f2dfd0c
commit 9af2bc0751
4 changed files with 9 additions and 5 deletions

View File

@@ -4729,7 +4729,7 @@ fuzzy_match_in_list(
p = str;
while (*p != NUL)
{
if (!VIM_ISWHITE(PTR2CHAR(p)))
if (!VIM_ISWHITE(PTR2CHAR(p)) || matchseq)
{
if (list_append_number(items[match_count].lmatchpos,
matches[j]) == FAIL)