mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix
This commit is contained in:
parent
084f0083da
commit
054e424875
1 changed files with 6 additions and 2 deletions
|
|
@ -29,8 +29,12 @@ impl Tab {
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut s = OsString::new();
|
let mut s = OsString::new();
|
||||||
let Some(hovered) = self.hovered() else { if opt.hovered { return } };
|
let mut it = self.selected_or_hovered().peekable();
|
||||||
let mut it = (if opt.hovered { once(hovered) } else { self.selected_or_hovered() }).peekable();
|
if opt.hovered {
|
||||||
|
if let Some(hovered) = self.hovered {
|
||||||
|
it = once(hovered).peekable();
|
||||||
|
} else { return };
|
||||||
|
}
|
||||||
while let Some(u) = it.next() {
|
while let Some(u) = it.next() {
|
||||||
s.push(match opt.type_.as_ref() {
|
s.push(match opt.type_.as_ref() {
|
||||||
"path" => opt.separator.transform(u),
|
"path" => opt.separator.transform(u),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue