mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
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:
parent
634f13e65f
commit
8fbe867afb
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue