Minor update

This commit is contained in:
Arijit Basu 2023-07-11 21:10:45 +05:30 committed by Arijit Basu
parent ad50342260
commit bc7f3cbbcf
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

View File

@ -1044,8 +1044,8 @@ impl App {
fn back(self) -> Result<Self> {
let pwd = self.pwd.clone();
if let Some(p) = PathBuf::from(&pwd).parent().and_then(|p| p.to_str()) {
self.change_directory(p, true)
.and_then(|a| a.focus_path(&pwd, false))
self.change_directory(p, false)
.and_then(|a| a.focus_path(&pwd, true))
} else {
Ok(self)
}