summaryrefslogtreecommitdiffstats
path: root/src/commands/change_directory.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/commands/change_directory.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/commands/change_directory.rs')
-rw-r--r--src/commands/change_directory.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/change_directory.rs b/src/commands/change_directory.rs
index 3ec1946..d62964e 100644
--- a/src/commands/change_directory.rs
+++ b/src/commands/change_directory.rs
@@ -33,7 +33,9 @@ impl ChangeDirectory {
std::mem::swap(&mut curr_tab.curr_list, &mut curr_list);
- curr_tab.history.insert(curr_list.file_path().clone(), curr_list);
+ curr_tab
+ .history
+ .insert(curr_list.file_path().clone(), curr_list);
curr_tab.curr_path = path.clone();
curr_tab