summaryrefslogtreecommitdiffstats
path: root/src/run.rs
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-02-24 20:41:12 -0500
committerJiayi Zhao <jeff.no.zhao@gmail.com>2020-02-24 20:41:12 -0500
commit49efef05db72fcff88a8986c0ccb65e7eef016f1 (patch)
tree15ca0d10dee13f78f0168d1127f708e368f8f28b /src/run.rs
parent2ac415fe4f4035c8edbcdac33aee8e54a46099f7 (diff)
reduce duration of messages
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/run.rs b/src/run.rs
index bb33c65..0b9913c 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -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 => {