diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-04 11:49:23 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-04 11:49:23 -0400 |
commit | 5a820a7a275bf5cacd2c545c0a0ac533789ec349 (patch) | |
tree | 7c12d22bd8b2c59c6125643386a6c7e12bbcfac8 /src/tab.rs | |
parent | 37fa8efbd8691d89fcd22727e3720621fff3680c (diff) |
fix cursor resetting to top when action is completed
- remove unused code
- clean up compiler warnings
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,7 +21,8 @@ impl JoshutoTab { let mut history = history::DirHistory::new(); history.populate_to_root(&curr_path, sort_option); - let curr_list: Option<JoshutoDirList> = Some(history.pop_or_create(&curr_path, sort_option)?); + let curr_list: Option<JoshutoDirList> = + Some(history.pop_or_create(&curr_path, sort_option)?); let parent_list: Option<JoshutoDirList> = match curr_path.parent() { Some(parent) => Some(history.pop_or_create(&parent, sort_option)?), |