[Backport] Fix buffer not resizing with no animation

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-02-05 20:10:10 +01:00
parent ac91704c56
commit 1b9286166e

View File

@@ -633,7 +633,7 @@ pub fn main() !void {
while (run) {
// If there's no input or there's an animation, a resolution change needs to be checked
if (!update or animate) {
if (!update or animate or config.bigclock != .none or config.clock != null) {
if (!update) std.Thread.sleep(std.time.ns_per_ms * 100);
_ = termbox.tb_present(); // Required to update tb_width() and tb_height()