Fix two bugs in on_drag_remote_data_request and next_remote_item

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/24185546-c2b4-44e6-8649-a06dc6d1491d

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-11 17:04:43 +00:00 committed by GitHub
parent 634f13e65f
commit 8fbe867afb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -476,7 +476,7 @@ func (dnd *dnd) next_remote_item() (err error) {
}
func (dnd *dnd) on_drag_remote_data_request(idx int) (err error) {
ds := dnd.drag_sources["text/uri_list"]
ds := dnd.drag_sources["text/uri-list"]
if ds == nil || len(ds.uri_list) < 1 {
dnd.finish_drag("EINVAL")
return fmt.Errorf("terminal asked for drag data from URI list but no list present")