mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: avoid adding non-regular paths to backstack (#249)
This commit is contained in:
parent
4527044547
commit
f4a8b26a5a
1 changed files with 3 additions and 1 deletions
|
|
@ -132,7 +132,9 @@ impl Tab {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backstack
|
// Backstack
|
||||||
self.backstack.push(target.clone());
|
if target.is_regular() {
|
||||||
|
self.backstack.push(target.clone());
|
||||||
|
}
|
||||||
|
|
||||||
emit!(Refresh);
|
emit!(Refresh);
|
||||||
true
|
true
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue