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 <kemyt4@gmail.com>
This commit is contained in:
Kemyt
2020-09-24 09:13:37 +02:00
committed by GitHub
parent 9e970f5799
commit cded15f50c

View File

@@ -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();
}