mirror of
https://github.com/sayanarijit/xplr
synced 2024-11-04 18:00:14 +00:00
Minor update
This commit is contained in:
parent
ad50342260
commit
bc7f3cbbcf
@ -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…
Reference in New Issue
Block a user