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 Use SIMD to replace C0 control codes in Go code 2025-07-21 08:54:22 +05:30
collect_test.go Rename go module from kitty -> github.com/kovidgoyal/kitty 2025-05-16 08:43:39 +05:30
diff.go run modernize 2025-11-11 17:09:37 +05:30
highlight.go Make various goroutines panic-safe 2025-10-09 07:17:53 +05:30
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 diff kitten: Fix wheel_scroll_multiplier not being respected 2025-10-01 17:07:47 +05:30
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