From 8105aa532c7fca7160ba3ce9303ba7613c59d277 Mon Sep 17 00:00:00 2001 From: Jiayi Zhao Date: Sat, 3 Aug 2019 10:32:50 -0400 Subject: 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 --- src/history.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/history.rs') 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); } -- cgit v1.2.3