mirror of
https://github.com/sxyazi/yazi.git
synced 2024-11-24 01:48:00 +03:00
fix: loss of order in Lua sequence table for inter-thread data exchange (#1457)
This commit is contained in:
parent
17c7003426
commit
36381e676f
@ -27,7 +27,7 @@ impl Sendable {
|
||||
}
|
||||
|
||||
if map.len() == i as usize - 1 {
|
||||
Data::List(map.into_values().collect())
|
||||
Data::List((1..i).map(|i| map.remove(&DataKey::Integer(i)).unwrap()).collect())
|
||||
} else {
|
||||
Data::Dict(map)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user