mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
- dnd.c: drop_send_dir_listing now uses drop_append_request_keys (echoes all request keys including Y for sub-dirs) and emits :X=handle instead of :Y=handle:X=2. Directory handles are now the X value itself. - dnd.c: drop_alloc_dir_handle starts handle counter at 1 so first handle is 2, keeping 0 (absent) and 1 (symlink) reserved as per protocol. - dnd.py: add is_dir_event() / dir_handle() helpers; update all tests to use int(X) > 1 as directory indicator and X as the handle value. - dnd.py: rename test_Y_key_in_dir_listing_response to test_X_key_is_handle_in_dir_listing_response with updated assertions. - dnd.py: test_uri_directory_transfer_tree expanded to verify unambiguous identification (Y=parent, x=entry echoed) at all three directory levels. Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/6973699c-a979-4d97-8213-1a4a501044a1 Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>