diff 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
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -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)