mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 14:51:03 +00:00
fix: preserve search results on refresh (#4123)
This commit is contained in:
parent
d39637f40c
commit
4dab480347
1 changed files with 5 additions and 2 deletions
|
|
@ -52,8 +52,11 @@ impl Refresh {
|
|||
}
|
||||
}
|
||||
|
||||
let futs: Vec<_> =
|
||||
folders.iter().filter(|&f| f.url.is_absolute()).map(|&f| go(f.url.clone(), f.cha)).collect();
|
||||
let futs: Vec<_> = folders
|
||||
.iter()
|
||||
.filter(|&f| f.url.is_absolute() && !f.url.is_search())
|
||||
.map(|&f| go(f.url.clone(), f.cha))
|
||||
.collect();
|
||||
|
||||
if !futs.is_empty() {
|
||||
tokio::spawn(futures::future::join_all(futs));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue