summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-04 11:49:23 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2019-04-04 11:49:23 -0400
commit5a820a7a275bf5cacd2c545c0a0ac533789ec349 (patch)
tree7c12d22bd8b2c59c6125643386a6c7e12bbcfac8 /src/tab.rs
parent37fa8efbd8691d89fcd22727e3720621fff3680c (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.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tab.rs b/src/tab.rs
index e12baad..d5a63cc 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -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)?),