mirror of
https://github.com/sxyazi/yazi.git
synced 2024-12-18 22:31:35 +03:00
fix: leave upwards only if an IO error occurs in current
(#172)
This commit is contained in:
parent
09243716a9
commit
07d5df05f1
@ -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…
Reference in New Issue
Block a user