kitty/kitty
copilot-swe-agent[bot] 2018f8b134
Fix 4 bugs in t=k implementation and add test infrastructure
Bug 1: remote_items allocation used ds.num_mimes instead of mi.num_uris
Bug 2: Off-by-one in uri_item_idx > mi.num_uris (should be >=)
Bug 3: Off-by-one in entry_num > parent->children_sz (should be >=)
Bug 4: DRAG_SOURCE_DROPPED state never set in drag_notify

Also add dnd_test_force_drag_dropped() helper and make
notify_drag_data_ready() succeed in test mode.

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/9da0bff7-6a1a-490f-a4c5-8cb328e056ce

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
2026-04-13 15:21:20 +00:00
..
conf Support negative inactive_text_alpha values for active-window-only fading 2026-04-09 13:04:01 +08:00
fonts Dont import ctypes unless type checking 2026-03-12 09:58:49 +05:30
launcher Make compiler happy 2026-02-13 08:39:20 +05:30
layout Fix drag resize direction bugs and add comprehensive tests 2026-04-01 03:48:49 +00:00
options Update changelog 2026-04-10 08:42:52 +05:30
rc feat(rc): add cscaled and centered to set-background-image layout choices 2026-04-04 03:01:32 -04:00
__init__.py
actions.py fix mypy errors in search_query_parser.py and actions.py 2026-03-31 17:57:12 +00:00
alpha_blend.glsl
animation.c Fix #8692 2025-05-29 08:17:45 +05:30
animation.h
arches.h
arena.h
backtrace.h
banned.h
base64.h base64 decode present dnd source data 2026-04-03 21:13:41 +05:30
bash.py
bgimage_fragment.glsl Rewrite rendering pipeline 2025-08-11 00:47:02 +05:30
bgimage_vertex.glsl Rewrite rendering pipeline 2025-08-11 00:47:02 +05:30
binary.h
blit_common.glsl Allow shader names with underscores 2025-08-13 07:10:16 +05:30
blit_fragment.glsl Rewrite rendering pipeline 2025-08-11 00:47:02 +05:30
blit_vertex.glsl Allow shader names with underscores 2025-08-13 07:10:16 +05:30
border_fragment.glsl Rewrite rendering pipeline 2025-08-11 00:47:02 +05:30
border_vertex.glsl Rewrite rendering pipeline 2025-08-11 00:47:02 +05:30
borders.py Track border rect orientation explicitly 2026-03-02 21:34:48 +05:30
boss.py Cleanup previous PR 2026-04-01 19:52:40 +05:30
cell_defines.glsl Implement displaying of extra cursor color 2025-08-26 21:27:13 +05:30
cell_fragment.glsl Write foreground output only at end of shader 2025-08-26 18:56:31 +05:30
cell_vertex.glsl Fix blue channel ignored in fg_override contrast check 2026-04-06 17:51:02 +01:00
char-props-data.h Add support for Unicode 17 2025-10-18 09:59:53 +05:30
char-props.c Use a two stage lookup table for segmentation 2025-04-01 14:25:24 +05:30
char-props.h Make GraphemeBreakProperty available globally 2025-04-11 09:34:21 +05:30
charsets.c
charsets.h
child-monitor.c Fix multiple security vulnerabilities across C, Python, and Go code 2026-04-03 16:10:46 +01:00
child.c Only chdir to / if the cwd is not executable or does not exist. Fixes #8636 2025-05-14 08:58:57 +05:30
child.py Avoid producing a nonexistent cwd/exe from e.g. defunct processes 2026-01-30 21:15:29 +00:00
choose_entry.py rename typing module to avoid conflicts with stdlib typing 2025-04-28 09:20:10 +05:30
cleanup.c Run at exit cleanup functions explicitly instead of relying on the ever unreliable python interpreter to do it 2025-02-10 15:06:18 +05:30
cleanup.h
cli.py Cache parsing of command line specifications 2025-09-29 12:31:10 +05:30
cli_stub.py goto_session: Add --sort-by=alphabetical 2025-09-29 13:03:23 +05:30
client.py Parser for multi cursor escape code 2025-08-24 20:14:14 +05:30
clipboard.py Send an OTP for paste events 2025-11-08 08:48:34 +05:30
cocoa_window.h Improve draw_single_line_of_text to support max_width and return (pixels, width) tuple 2026-04-06 05:25:38 +00:00
cocoa_window.m Function to get machine ID on cocoa 2026-04-09 07:04:12 +05:30
color-names.h Move parsing of colors fully into C 2025-12-31 14:21:45 +05:30
colors.c Regenerate palette colors when changing colors at runtime 2026-03-28 09:33:25 +05:30
colors.h
colors.py Regenerate palette colors when changing colors at runtime 2026-03-28 09:33:25 +05:30
config.py Add option to generate 256 color palette from first 16 colors 2026-03-27 20:01:14 +05:30
constants.py version 0.46.2 2026-03-21 06:36:04 +05:30
control-codes.h Start work on DnD protocol 2026-03-21 08:41:46 +05:30
core_text.m Improve draw_single_line_of_text to support max_width and return (pixels, width) tuple 2026-04-06 05:25:38 +00:00
cross-platform-random.h
crypto.c Fix multiple security vulnerabilities across C, Python, and Go code 2026-04-03 16:10:46 +01:00
cursor.c Implement round tripping of SGR blink (5/25) 2025-08-25 12:34:38 +05:30
cursor_trail.c Fix cursor_trail rendering at incorrect co-ords 2025-08-11 14:53:23 +05:30
data-types.c Start work on DnD protocol 2026-03-21 08:41:46 +05:30
data-types.h Implement OSC 9;4 progress bar rendering in kitty window 2026-03-31 22:45:25 +05:30
debug_config.py Fix debug_config showing sequence shortcuts grouped on a single line 2026-03-04 20:25:27 +05:30
decorations.c Implement software rendering for Unicode 16 legacy computing symbols 2026-04-11 14:17:21 +05:30
decorations.h
desktop.c
disk-cache.c Cleanup previous PR 2026-04-03 22:25:05 +05:30
disk-cache.h Avoid using lseek() to track disk cache file write offset 2025-11-17 11:16:30 +05:30
dnd.c Fix 4 bugs in t=k implementation and add test infrastructure 2026-04-13 15:21:20 +00:00
dnd.h Fix 4 bugs in t=k implementation and add test infrastructure 2026-04-13 15:21:20 +00:00
entry_points.py Add save_as_session action 2025-08-16 06:32:42 +05:30
fast-file-copy.c
fast-file-copy.h
fast_data_types.pyi Have the client send machine id to terminal rather than vice versa 2026-04-12 11:00:23 +05:30
file_transmission.py Fix multiple security vulnerabilities across C, Python, and Go code 2026-04-03 16:10:46 +01:00
fixed_size_deque.h Initial implementation of momentum for finger based scrolling on Wayland 2026-01-05 19:52:44 +05:30
font-names.c DRYer 2025-07-10 08:24:01 +05:30
fontconfig.c Fixed typos 2025-05-18 19:52:12 +05:30
fonts.c Implement software rendering for Unicode 16 legacy computing symbols 2026-04-11 14:17:21 +05:30
fonts.h Implement horizontal alignment for font based rendering 2025-02-19 09:04:22 +05:30
freetype.c ... 2026-03-02 20:22:36 +05:30
freetype_render_ui_text.c Improve draw_single_line_of_text to support max_width and return (pixels, width) tuple 2026-04-06 05:25:38 +00:00
freetype_render_ui_text.h Improve draw_single_line_of_text to support max_width and return (pixels, width) tuple 2026-04-06 05:25:38 +00:00
gl-wrapper.c
gl-wrapper.h More robust detection of support for GL_FRAMEBUFFER_SRGB 2025-08-11 09:13:49 +05:30
gl.c Simplify API 2025-12-10 08:55:06 +05:30
gl.h Simplify API 2025-12-10 08:55:06 +05:30
glfw-wrapper.c Add glfwGetKeyboardRepeatDelay() to the GLFW API for X11, Wayland and Cocoa 2026-03-23 11:46:35 +00:00
glfw-wrapper.h Wayland: set drop accepted operations 2026-04-07 10:40:14 +05:30
glfw.c Fix 4 bugs in t=k implementation and add test infrastructure 2026-04-13 15:21:20 +00:00
glyph-cache.c
glyph-cache.h
graphics.c Graphics protocol: Fix crash when handling invalid offset values in graphics compose commands 2026-03-22 21:49:12 +05:30
graphics.h Add configurable pixel scrolling 2025-12-26 19:33:21 +01:00
graphics_fragment.glsl Rewrite rendering pipeline 2025-08-11 00:47:02 +05:30
graphics_vertex.glsl Allow shader names with underscores 2025-08-13 07:10:16 +05:30
guess_mime_type.py Fix completion for edit-in-kitty not including some common text file types 2026-03-27 20:07:55 +05:30
history.c Function to erase the last command and its output 2025-08-07 08:45:45 +05:30
history.h Function to erase the last command and its output 2025-08-07 08:45:45 +05:30
hsluv.glsl fix: prevent nan/inf in hsluv conversion 2025-03-13 15:01:43 +01:00
hyperlink.c
hyperlink.h
iqsort.h
key_encoding.c
key_encoding.py feat: add per-mapping --allow-fallback for layout-independent shortcuts 2026-03-25 19:34:13 +03:00
key_names.py
keys.c Implement smooth animated scrolling for scroll_line_up and scroll_line_down 2026-03-31 21:02:53 +05:30
keys.h
keys.py Cleanup previous PR 2026-03-26 09:30:14 +05:30
kittens.c
kitty-verstable.h
launch.py ... 2026-04-04 11:47:08 +05:30
line-buf.c Track line continuation in only one place 2025-02-08 08:58:50 +05:30
line-buf.h
line.c Fix marker highlighting for CJK/wide chars not at position 0 2026-03-19 15:35:14 +05:30
line.h Implement round tripping of SGR blink (5/25) 2025-08-25 12:34:38 +05:30
linear2srgb.glsl Directly operate on vec3 for linear2srgb 2025-08-26 19:14:06 +05:30
lineops.h Micro-optimization 2025-03-12 16:49:12 +05:30
logging.c Use SIMD to replace C0 control codes in Go code 2025-07-21 08:54:22 +05:30
loop-utils.c
loop-utils.h
machine_id.py Code to get and use machine id during DnD 2026-04-09 07:47:57 +05:30
macos_process_info.c fix abspath of pid function on macOS 2025-08-19 09:50:37 +05:30
main.py macOS: Add Copy/Paste menu items to the Edit menu in the global menu bar 2026-03-31 13:56:31 +05:30
marks.py
modes.h Add support for the paste events protocol 2025-11-04 15:02:19 +05:30
monotonic.c
monotonic.h
mouse.c Make focus_follows_mouse only switch on window-boundary crossings 2026-04-07 14:18:54 +01:00
multiprocessing.py Make mypy + python 3.14 happy 2026-01-14 22:04:34 +05:30
notifications.py Fix messages in notifications 2025-06-07 07:57:51 -07:00
open_actions.py rename typing module to avoid conflicts with stdlib typing 2025-04-28 09:20:10 +05:30
os_window_size.py rename typing module to avoid conflicts with stdlib typing 2025-04-28 09:20:10 +05:30
parse-dnd-command.h Add machine id and stub for t=k transfers 2026-04-11 17:20:53 +05:30
parse-graphics-command.h Fix os.makedirs to os.mkdir for single-level directory in test 2026-04-09 11:38:49 +00:00
parse-multicell-command.h Fix os.makedirs to os.mkdir for single-level directory in test 2026-04-09 11:38:49 +00:00
png-reader.c Cleanup previous PR 2026-04-03 22:25:05 +05:30
png-reader.h Start work on drag and drop for tabs 2026-02-19 12:37:31 +05:30
print-graphics.h Fix display of glyph data 2026-02-25 12:34:19 +05:30
progress.py
remote_control.py Cleanup previous PR 2026-04-03 22:25:05 +05:30
render_cache.py
resize.c Dont rewrap text in the alternate screen buffer 2025-11-26 10:29:12 +05:30
resize.h Dont rewrap text in the alternate screen buffer 2025-11-26 10:29:12 +05:30
rgb.py Move parsing of colors fully into C 2025-12-31 14:21:45 +05:30
rounded_rect_fragment.glsl Improve rendering of hyperlink hover popups 2025-08-14 08:30:28 +05:30
rounded_rect_vertex.glsl Improve rendering of hyperlink hover popups 2025-08-14 08:30:28 +05:30
rowcolumn-diacritics.c Add support for Unicode 17 2025-10-18 09:59:53 +05:30
safe-wrappers.h More work on DnD protocol 2026-04-13 19:40:23 +05:30
screen.c Have the client send machine id to terminal rather than vice versa 2026-04-12 11:00:23 +05:30
screen.h Refactor the drop protocol 2026-04-09 20:39:54 +05:30
screenshot_fragment.glsl Get tab re-ordering on drag in same window to work 2026-02-20 12:22:56 +05:30
screenshot_vertex.glsl Fix screenshot generation to handle colors correctly 2026-02-19 12:58:13 +05:30
search_query_parser.py fix mypy errors in search_query_parser.py and actions.py 2026-03-31 17:57:12 +00:00
session.py feat(sessions): add active-only to goto_session 2026-02-14 16:23:27 +01:00
shaders.c Cleanup previous PR 2026-04-09 14:20:46 +05:30
shaders.py Fix screenshot generation to handle colors correctly 2026-02-19 12:58:13 +05:30
shell_integration.py When saving session add option to save the foreground process running in the shell so that it is also restarted 2025-08-16 16:50:45 +05:30
shlex.c Make shlex code re-useable in launcher 2025-04-25 09:35:42 +05:30
shm.py Make mypy happy 2025-09-13 07:21:31 +05:30
short_uuid.py
simd-string-128.c
simd-string-256.c
simd-string-impl.h Combine ascii_mask/counts check with errors vector in simd-string-impl.h 2025-10-23 22:37:33 -06:00
simd-string.c
simd-string.h
simple_cli_definitions.py Allow simple_cli_definitions to be run on ASAN builds 2025-12-04 14:58:56 +05:30
srgb_gamma.h Fix: Increase sRGB LUT precision to 8 decimal places for more accurate color rendering 2026-02-17 02:22:20 +05:30
state.c Add machine id and stub for t=k transfers 2026-04-11 17:20:53 +05:30
state.h More work on DnD protocol 2026-04-13 19:40:23 +05:30
systemd.c
tab_bar.py DRYer 2026-03-28 13:46:25 +05:30
tabs.py Improve draw_single_line_of_text to support max_width and return (pixels, width) tuple 2026-04-06 05:25:38 +00:00
terminfo.h Remove empty key definitions from terminfo 2026-01-26 11:50:08 +05:30
terminfo.py Remove empty key definitions from terminfo 2026-01-26 11:50:08 +05:30
text-cache.c
text-cache.h
threading.h
tint_fragment.glsl Rewrite rendering pipeline 2025-08-11 00:47:02 +05:30
tint_vertex.glsl
trail_fragment.glsl Fix a regression in the previous release that caused the cursor trail to not be hidden properly 2025-09-29 20:35:12 +05:30
trail_vertex.glsl
types.py Cleanup previous PR 2026-03-03 13:04:26 +05:30
typing_compat.py Fix #8915 2025-08-19 06:31:36 +05:30
typing_compat.pyi Implement set_layout_state for a few remaining layouts 2025-08-04 16:02:19 +05:30
unicode-data.h URL detection: Allow trailing asterisks in URLs 2026-02-23 07:54:47 +05:30
update_check.py
utils.glsl Implement displaying of extra cursor color 2025-08-26 21:27:13 +05:30
utils.py More work on DnD protocol 2026-04-13 19:40:23 +05:30
utmp.c
vt-parser.c Start work on DnD protocol 2026-03-21 08:41:46 +05:30
vt-parser.h
wcswidth.c Port wcswidth to use grapheme segmentation 2025-04-11 09:34:21 +05:30
wcswidth.h Port wcswidth to use grapheme segmentation 2025-04-11 09:34:21 +05:30
window.py ... 2026-04-06 11:39:18 +05:30
window_list.py Cleanup handling of drag_overlay_mode 2026-03-28 13:26:56 +05:30
window_logo.c Add function to get window as launch command for serialization 2025-08-11 21:20:55 +05:30
window_logo.h Add function to get window as launch command for serialization 2025-08-11 21:20:55 +05:30
window_title_bar.py DRYer 2026-03-05 17:03:47 +05:30
xdg.py