kitty/kittens/diff
Artem Lytkin f6e276c1e7 diff kitten: Fix search missing matches at the end of a line
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.
2026-09-27 12:39:13 +03:00
..
__init__.py
collect.go
collect_test.go
diff.go
highlight.go
main.go diff kitten: Strip suid/sgid bits from extracted files 2026-06-03 05:45:04 +05:30
main.py autoformat 2026-08-05 05:32:56 +05:30
mouse.go
patch.go diff kitten: Don't build a full LCS table for word diffs of long lines 2026-09-25 21:41:23 +03:00
patch_test.go diff kitten: Don't build a full LCS table for word diffs of long lines 2026-09-25 21:41:23 +03:00
render.go kitten diff: add support for sticky header 2026-04-18 18:26:30 +03:00
search.go diff kitten: Fix search missing matches at the end of a line 2026-09-27 12:39:13 +03:00
search_test.go diff kitten: Fix search missing matches at the end of a line 2026-09-27 12:39:13 +03:00
ui.go fix overlap with the next file's header 2026-04-19 09:24:44 +03:00