diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-19 10:22:03 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-19 10:26:25 -0400 |
commit | bd779fc6df4641f81bbbfe50663d883d64a5c88e (patch) | |
tree | e139f2d588f46142b2d632741a91339df66d1b8f /src/run.rs | |
parent | 06b2d7730d10240b471e859c7988ed219aa4c590 (diff) |
add soft-reload option
- this helps with reloading upon sort order change
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)?; } |