kitty/kitty_tests
Kovid Goyal 24f7369bb6
Drop Unicode placeholder cell images scrolled off the bottom of the screen
A full screen reverse scroll (ESC M at the top, CSI T) moves every image
ref down a row. scroll_filter_func() only removed refs that left through
the top, so a cell image on the bottom line ended up at row `lines`, off
screen, while its line was discarded. The next forward scroll brought it
back onto the bottom row, where the line has no placeholders.
screen_render_line_graphics() returns early for such lines, so nothing
removed the ref and a slice of the old image was drawn over the new text.
tmux and pagers send ESC M when scrolling down, so this shows up in
practice. Fix it by dropping cell image refs that move below the bottom
margin, the same way the margins scroll path drops refs that leave the
region.

This replaces PR #10623, which was not merged for these reasons:

- It does not find the cause. It removes cell image refs at render time
  for every line without placeholders, so the stale ref still exists and
  is still seen by anything that reads refs before the next render, such
  as graphics query and delete commands and the paused rendering path,
  which returns before the new code.
- It costs time on every frame. Whenever any image is loaded, even with
  no placeholders at all, each clean visible line and each visible
  history line triggers a walk over all images and refs. Before, such
  lines cost nothing. This fix adds one comparison to a loop that only
  runs when the screen scrolls.

Close #10623
2026-10-07 20:19:23 +05:30
..
__init__.py Test suite: Fix small numbers of Python tests being run in incorrect environment 2026-09-15 16:50:21 +05:30
atexit.py
base.py Color control protocol: Respond to unknown field names safely using base64 encoding 2026-09-01 21:20:04 +05:30
CascadiaCode-Regular.otf
check_build.py Remove incremental linking test. setup is not available in all contexts where tests run and this functionality isnt important enough to warrant a test anyway 2026-08-13 08:14:28 +05:30
child.py
choose_files.py Quote choose-files shell output safely 2026-08-12 13:10:53 +05:00
clipboard.py clipboard protocol: Specify handling of invalid base64 data 2026-08-25 10:12:25 +05:30
ComfyCode-Regular.ttf
command_palette.py
completion.py Complete session file completion 2026-08-12 19:15:52 +05:00
crypto.py
datatypes.py Set cursor text blinking without inverting it 2026-10-05 15:24:21 +05:00
dnd.py Fix #10618 2026-10-06 15:29:26 +05:30
dnd_kitten.py Fix explicit stdin sources in the DnD kitten 2026-08-28 13:19:25 +05:00
docks.py Add support for docked windows 2026-10-01 15:45:44 +05:30
edit_in_kitty.py edit-in-kitty: Harden parsing of edit commands received from clients 2026-09-17 19:56:56 +05:30
file_transmission.py Fix file transfer confirmation bypass with empty password configured 2026-09-28 07:18:10 +05:30
FiraCode-Medium.otf
fonts.py ... 2026-09-19 12:10:40 +05:30
glfw.py
gr.py
GraphemeBreakTest.json
graphics.py Drop Unicode placeholder cell images scrolled off the bottom of the screen 2026-10-07 20:19:23 +05:30
hints.py Fix empty hints selection handling 2026-08-28 11:49:17 +05:00
iosevka-regular.ttf
iterable_arguments.py Handle empty iterables before testing their truthiness 2026-09-22 16:30:29 +08:00
keys.py fix #10490 2026-09-17 14:22:59 +05:30
layout.py Align window frames and make gaps between windows uniform 2026-10-01 17:12:52 +05:30
LiberationMono-Regular.ttf
main.py Retain Go diagnostics when the test process fails 2026-10-06 14:31:17 +05:00
mouse.py Fix drag gesture state leaking past the button event early returns 2026-09-08 18:51:02 +05:30
multicell.py Fix an out of bounds memory access when drawing a multi line character with cursor below bottom margin 2026-09-24 18:49:35 +05:30
notifications.py
notify.py Fix notification close mode 2026-08-28 11:20:05 +05:00
open_actions.py handle invalid UTF-8 in binary mime db 2026-10-06 08:58:50 +05:30
options.py Use parsed command boundary for session expansion 2026-09-27 11:43:56 +05:00
panels.py
parser.py Add regression test for invalid DECRQSS queries 2026-09-26 10:37:44 -04:00
remote_control.py feat: add remote control for OS window titles [feature/UAT-set-os-window-title] 2026-08-10 09:52:16 +02:00
screen.py Fix #10609 2026-10-05 20:34:59 +05:30
search_query_parser.py Fix #10491 2026-09-17 17:03:58 +05:30
selection_drag.py Fix drag gesture state leaking past the button event early returns 2026-09-08 18:51:02 +05:30
shell_integration.py Fix random test failure when running in parallel on macOS 2026-08-23 20:39:43 +05:30
shm.py Skip test inapplicable on macOS 2026-09-01 20:28:26 +05:30
single_instance.py Linux only allow single instance socket use by same user 2026-09-18 14:54:49 +05:30
slang.py Particle effects for cursor trail shaders 2026-10-02 10:05:57 +05:30
ssh.py Cleanup previous PR 2026-09-22 17:37:58 +05:30
tab_bar.py Drag and drop: Fix issues in tab hover switching and insertion 2026-09-26 15:50:52 +05:30
tab_drop.py Cleanup previous PR ensuring stale saved restore tabis not present 2026-09-28 10:40:15 +05:30
tui.py
twemoji_smiley-cff2_colr_1.otf
utmp.py