From 3b8cd6c0a114402c21bed59686b4bf677400799c Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 13 Jun 2022 22:41:58 +0200 Subject: [PATCH] Fix vertical off-by-one --- cove-tui/src/chat/tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cove-tui/src/chat/tree.rs b/cove-tui/src/chat/tree.rs index f858805..6898c1f 100644 --- a/cove-tui/src/chat/tree.rs +++ b/cove-tui/src/chat/tree.rs @@ -305,7 +305,7 @@ impl TreeView { // TODO Ensure there is no focus // Start layout at the bottom of the screen - let mut layout = Layout::new_below(height); + let mut layout = Layout::new_below(height - 1); // Expand layout upwards until the edge of the screen if let Some(last_tree) = store.last_tree(room).await {