mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01: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() {
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue