fix: leave upwards only if an IO error occurs in current (#172)

This commit is contained in:
三咲雅 · Misaki Masa 2023-09-17 15:23:01 +08:00 committed by GitHub
parent 09243716a9
commit 07d5df05f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,14 +362,13 @@ impl Manager {
if url == self.cwd() {
self.current_mut().update(op);
self.active_mut().leave();
true
} 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 {
return false;
false
}
self.active_mut().leave();
true
}
pub fn update_mimetype(&mut self, mut mimes: BTreeMap<Url, String>, tasks: &Tasks) -> bool {