Fix two bugs in remote DnD drag: missing idx_in_uri_list and stale data_capacity

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/fdd92dca-f2f9-4bb6-9d85-b5daeaa501f7

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-03 07:57:06 +00:00
committed by GitHub
parent 0de313e178
commit c98c8542ca
2 changed files with 6 additions and 1 deletions

View File

@@ -347,7 +347,7 @@ func (dnd *dnd) start_remote_data_send(ds *drag_source) (err error) {
return err
}
} else {
f := remote_data_item{idx_in_parent: i, metadata: x.metadata, path: x.path}
f := remote_data_item{idx_in_parent: i, idx_in_uri_list: i, metadata: x.metadata, path: x.path}
dnd.drag_status.remote_items = append(dnd.drag_status.remote_items, &f)
}
}