From 495d5ae789ac7b1aaac8fd796eb8110592c64c4e Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Thu, 2 Mar 2023 03:20:35 +0000 Subject: [PATCH] docs: changelog --- CHANGELOG.md | 4 ++-- src/ui/mod.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b98961..7c2d495 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ + comments improved, [ec962295a8789ff8010604e974969bf618ea7108] ### Features -+ Mouse capture is now more fined grained, should have substantial performace impact on low end machines, as well as fixing intermittent mouse events output bug, [0a1b53111627206cc7436589e5b7212e1b72edb8] ++ Mouse capture is now more specific, should have substantial performance impact on low end machines (i.e. raspberry pi), as well as fixing intermittent mouse events output bug, [0a1b53111627206cc7436589e5b7212e1b72edb8] + Improve the styling of the help information popup, [28de74b866f07c8543e46be3cab929eff28953fd] + use checked_sub & checked_div for bounds checks, [72279e26ae996353c95a75527f704bac1e4bcf4d] @@ -15,7 +15,7 @@ + Dead code removed, [b8f5792d1865d3a398cd7f23aa9473a55dc6ea44] + improve the get_width function, [04c26fe8fc7c79506921b9cff42825b1ee132737] + Place ui methods into a Ui struct, [3437df59884f084624031fceb34ea3012a8e2251] -+ get_horizotal/vertical contraints into single method, [e8f5cf9c6f8cd5f807a05fb61e31d7cd1426486f] ++ get_horizotal/vertical constraints into single method, [e8f5cf9c6f8cd5f807a05fb61e31d7cd1426486f] + docker update_everything variables, [074cb957f274675a468f08fecb1c43ff7453217d] # v0.2.3 diff --git a/src/ui/mod.rs b/src/ui/mod.rs index 9522b51..6755669 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -114,11 +114,11 @@ impl Ui { if self.now.elapsed() >= std::time::Duration::from_secs(1) { seconds -= 1; self.now = Instant::now(); + if seconds < 1 { + break; + } } - if seconds < 1 { - break; - } if self .terminal