Fix flaky test
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run

This commit is contained in:
Kovid Goyal 2026-10-29 22:05:37 +05:30
parent cb88028abd
commit 02b2b10d10
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -654,8 +654,8 @@ func (root *remote_dir_entry) close_tree() {
func (dnd *dnd) end_drop(success bool) {
if dnd.drop_status.reading_data {
dnd.lp.QueueDnDData(DC{
Type: 'r', Operation: utils.IfElse(success, dnd.drop_status.action, 0)}) // end drop
// Remove the sources of a move before signalling the end of the drop,
// so that the drop is complete when the terminal is told it has finished
if success && dnd.drop_status.action == move_on_drop && !dnd.drop_status.is_remote_client {
for _, u := range dnd.drop_status.uri_list {
if u.kind != parsed_uri_file || u.path == "" {
@ -672,6 +672,8 @@ func (dnd *dnd) end_drop(success bool) {
}
}
}
dnd.lp.QueueDnDData(DC{
Type: 'r', Operation: utils.IfElse(success, dnd.drop_status.action, 0)}) // end drop
}
dnd.reset_drop()
if success && dnd.has_exit_on("drop-finish") {