mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-02 19:57:20 +02:00
find_matches_in_lines was passing the exclusive end offset of a match to find_pos, so a match ending at the end of the joined screen lines mapped to no line and was dropped. It was not highlighted, not counted and n/N skipped it. Since screen lines are not padded, this hit any match on the last character of a line, for example searching for foo in "x := foo". Look up the line holding the last matched byte instead.