From cded15f50c81ab6073b91a9cab425ed3fe685980 Mon Sep 17 00:00:00 2001 From: Kemyt <34860241+Kemyt@users.noreply.github.com> Date: Thu, 24 Sep 2020 09:13:37 +0200 Subject: [PATCH] Fix last tab to fill entire width correctly (#271) Condition to check if the tab is the last one was never met. Co-authored-by: Kemyt --- src/ui/tabview.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/tabview.rs b/src/ui/tabview.rs index ef99ec8..13db3a9 100644 --- a/src/ui/tabview.rs +++ b/src/ui/tabview.rs @@ -74,7 +74,7 @@ impl View for TabView { }; let mut width = tabwidth; - if i == self.tabs.len() { + if i == self.tabs.len() - 1 { width += printer.size.x % self.tabs.len(); }