mirror of
https://github.com/vim/vim.git
synced 2026-10-03 15:57:17 +02:00
Problem: matchfuzzypos() returns match positions as character indices, but
text property col/length are counted in bytes. FuzzySearch()
used "col + 1" and "length: 1", so matched multibyte characters
were split and only their first byte was highlighted.
Solution: Convert character indices to byte offsets with byteidx() and use
the byte length of each matched character (VimWei).
fixes: #21056
closes: #21198
Signed-off-by: VimWei <vimelchen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>