summaryrefslogtreecommitdiffstats
path: root/src/commands/open_file.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-05 11:20:17 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-06-05 11:20:17 -0400
commitbabf6e62b0f6fea99cedd5680b057437beb9251e (patch)
treecbc36226fc425fa1de328a95e6919af2f39ea83e /src/commands/open_file.rs
parenta31f9714f81f8801b803356ff467d4a7ad78e34d (diff)
fmt, clippy and make more fields private
Diffstat (limited to 'src/commands/open_file.rs')
-rw-r--r--src/commands/open_file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/open_file.rs b/src/commands/open_file.rs
index b733255..57d2892 100644
--- a/src/commands/open_file.rs
+++ b/src/commands/open_file.rs
@@ -91,7 +91,7 @@ impl OpenFile {
std::mem::swap(&mut curr_tab.curr_list, &mut new_curr_list);
curr_tab
.history
- .insert(new_curr_list.path.clone(), new_curr_list);
+ .insert(new_curr_list.file_path().clone(), new_curr_list);
curr_tab.curr_path = path.to_path_buf().clone();
Ok(())