comparison src/search.c @ 28831:b5c46d447518 v8.2.4939

patch 8.2.4939: matchfuzzypos() with "matchseq" does not have all positions Commit: https://github.com/vim/vim/commit/9af2bc075169e14fd06ed967d28eac7206d21f36 Author: zeertzjq <zeertzjq@outlook.com> Date: Wed May 11 14:15:37 2022 +0100 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 https://github.com/vim/vim/issues/10404)
author Bram Moolenaar <Bram@vim.org>
date Wed, 11 May 2022 15:30:03 +0200
parents d0241e74bfdb
children 6cdf55afaae9
comparison
equal deleted inserted replaced
28830:405c5cf665b0 28831:b5c46d447518
4727 goto done; 4727 goto done;
4728 4728
4729 p = str; 4729 p = str;
4730 while (*p != NUL) 4730 while (*p != NUL)
4731 { 4731 {
4732 if (!VIM_ISWHITE(PTR2CHAR(p))) 4732 if (!VIM_ISWHITE(PTR2CHAR(p)) || matchseq)
4733 { 4733 {
4734 if (list_append_number(items[match_count].lmatchpos, 4734 if (list_append_number(items[match_count].lmatchpos,
4735 matches[j]) == FAIL) 4735 matches[j]) == FAIL)
4736 goto done; 4736 goto done;
4737 j++; 4737 j++;