mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: leave upwards only if an IO error occurs in current (#172)
This commit is contained in:
parent
09243716a9
commit
07d5df05f1
1 changed files with 4 additions and 5 deletions
|
|
@ -362,14 +362,13 @@ impl Manager {
|
||||||
|
|
||||||
if url == self.cwd() {
|
if url == self.cwd() {
|
||||||
self.current_mut().update(op);
|
self.current_mut().update(op);
|
||||||
|
self.active_mut().leave();
|
||||||
|
true
|
||||||
} else if matches!(self.parent(), Some(p) if &p.cwd == url) {
|
} else if matches!(self.parent(), Some(p) if &p.cwd == url) {
|
||||||
self.active_mut().parent.as_mut().unwrap().update(op);
|
self.active_mut().parent.as_mut().unwrap().update(op)
|
||||||
} else {
|
} else {
|
||||||
return false;
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
self.active_mut().leave();
|
|
||||||
true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update_mimetype(&mut self, mut mimes: BTreeMap<Url, String>, tasks: &Tasks) -> bool {
|
pub fn update_mimetype(&mut self, mut mimes: BTreeMap<Url, String>, tasks: &Tasks) -> bool {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue