mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Address review comments: rename variable and improve comments
Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/41b8254d-fc79-4f41-9775-67d1ddfceb5b Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
66dca3cde1
commit
8acb6e7ecb
@@ -634,8 +634,8 @@ func (dnd *dnd) on_drop_move(cell_x, cell_y int, has_more bool, offered_mimes st
|
||||
}
|
||||
}
|
||||
// Restrict to operations allowed by the drag source.
|
||||
if sao := dnd.drop_status.source_allowed_ops; sao != 0 && dnd.drop_status.action != 0 {
|
||||
if sao&dnd.drop_status.action == 0 {
|
||||
if allowed := dnd.drop_status.source_allowed_ops; allowed != 0 && dnd.drop_status.action != 0 {
|
||||
if allowed&dnd.drop_status.action == 0 {
|
||||
dnd.drop_status.action = 0
|
||||
dnd.drop_status.accepted_mimes = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user