From fa4059541f7028a6e258de5bcb9c3aa08c0cca01 Mon Sep 17 00:00:00 2001 From: Jake Date: Mon, 14 Oct 2024 22:45:31 -0700 Subject: [PATCH] Fix unwrap with default terminal size --- src/daemon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.rs b/src/daemon.rs index f30333f..1be724e 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -447,7 +447,7 @@ impl Checker for Daemon { self.graph = self.grapher.update_one(&mut self.grapher.vals.clone()); } - let (term_width, _term_height) = termion::terminal_size().unwrap_or(80); + let (term_width, _term_height) = termion::terminal_size().unwrap_or((80, 80)); // Render two sections of the output // Rendering before screen is cleared reduces the time between clear and print