Files
VimWei 7622601307 patch 9.2.1027: runtime(helptoc): FuzzySearch() highlights matched characters at the wrong column
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>
2026-09-01 19:10:27 +00:00
..