diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-02-24 20:41:12 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-02-24 20:41:12 -0500 |
commit | 49efef05db72fcff88a8986c0ccb65e7eef016f1 (patch) | |
tree | 15ca0d10dee13f78f0168d1127f708e368f8f28b /src/run.rs | |
parent | 2ac415fe4f4035c8edbcdac33aee8e54a46099f7 (diff) |
reduce duration of messages
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -71,12 +71,7 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io: Event::Input(key) => { /* Message handling */ if !context.message_queue.is_empty() { - if context.message_elapse < MESSAGE_VISIBLE_DURATION { - context.message_elapse += 1; - } else { - let _ = context.message_queue.pop_front(); - context.message_elapse = 0; - } + let _ = context.message_queue.pop_front(); } match keymap_t.get(&key) { None => { |