summaryrefslogtreecommitdiffstats
path: root/src/history.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-08-03 10:32:50 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-08-03 10:38:22 -0400
commit8105aa532c7fca7160ba3ce9303ba7613c59d277 (patch)
tree1cd680e77463bdce2b4b8381a0dcd1ec5b35e17e /src/history.rs
parent0b8747eb37d6d943d90e15ed82858d99d1800425 (diff)
Make xdg_open toggleable
- xdg_open option automatically opens file rather than asking user what to do - fix crash when trying to open something in an empty directory
Diffstat (limited to 'src/history.rs')
-rw-r--r--src/history.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/history.rs b/src/history.rs
index 7333af7..e843d29 100644
--- a/src/history.rs
+++ b/src/history.rs
@@ -43,7 +43,8 @@ impl DirectoryHistory for JoshutoHistory {
}
}
Entry::Vacant(entry) => {
- let mut dirlist = JoshutoDirList::new(curr.to_path_buf().clone(), sort_option)?;
+ let mut dirlist =
+ JoshutoDirList::new(curr.to_path_buf().clone(), sort_option)?;
if let Some(i) = get_index_of_value(&dirlist.contents, &ancestor) {
dirlist.index = Some(i);
}