summaryrefslogtreecommitdiffstats
path: root/src/run.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-19 10:22:03 -0400
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-03-19 10:26:25 -0400
commitbd779fc6df4641f81bbbfe50663d883d64a5c88e (patch)
treee139f2d588f46142b2d632741a91339df66d1b8f /src/run.rs
parent06b2d7730d10240b471e859c7988ed219aa4c590 (diff)
add soft-reload option
- this helps with reloading upon sort order change
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index 34b6e44..90035b6 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -67,7 +67,8 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io:
context.message_queue.push_back(msg);
let options = &context.config_t.sort_option;
for tab in context.tabs.iter_mut() {
- tab.history.depreciate_all_entries();
+ tab.history.depreciate_entry(&src);
+ tab.history.depreciate_entry(&dest);
}
LoadChild::load_child(&mut context)?;
}