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.
fixes: #21056
https://github.com/vim/vim/pull/21198
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()