From 8276d28b8d2a9fb7748de5c564f1f4dcf127b81d Mon Sep 17 00:00:00 2001 From: Nyx <144965845+nnyyxxxx@users.noreply.github.com> Date: Wed, 2 Oct 2024 03:04:57 -0400 Subject: [PATCH] Update tui/src/state.rs Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com> --- tui/src/state.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/tui/src/state.rs b/tui/src/state.rs index 91688e32..bbee883e 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -761,9 +761,6 @@ impl AppState { fn scroll_tab_down(&mut self) { let len = self.tabs.len(); - if len == 0 { - return; - } let current = self.current_tab.selected().unwrap_or(0); let next = if current + 1 >= len { 0 } else { current + 1 }; self.current_tab.select(Some(next));