mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-12 21:34:57 +02:00
Clear remote_item_write_id on completion
Needed as send next remote item checks it is zero before sending
This commit is contained in:
+2
-5
@@ -332,11 +332,8 @@ func (dnd *dnd) on_send_done(id loop.IdType) (err error) {
|
||||
}
|
||||
}
|
||||
if id == dnd.drag_status.remote_item_write_id {
|
||||
if dnd.drag_status.current_remote_file != nil {
|
||||
err = dnd.send_next_file_chunk()
|
||||
} else {
|
||||
err = dnd.next_remote_item()
|
||||
}
|
||||
dnd.drag_status.remote_item_write_id = 0
|
||||
err = dnd.send_next_file_chunk()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user