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:
@@ -74,7 +74,7 @@ impl View for TabView {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let mut width = tabwidth;
|
let mut width = tabwidth;
|
||||||
if i == self.tabs.len() {
|
if i == self.tabs.len() - 1 {
|
||||||
width += printer.size.x % self.tabs.len();
|
width += printer.size.x % self.tabs.len();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user