Minor update

pull/649/head
Arijit Basu 10 months ago committed by Arijit Basu
parent ad50342260
commit bc7f3cbbcf
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -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)
}

Loading…
Cancel
Save