diff --git a/src/widgets/tabs.rs b/src/widgets/tabs.rs index f57bd8f..e03e494 100644 --- a/src/widgets/tabs.rs +++ b/src/widgets/tabs.rs @@ -122,7 +122,7 @@ where } }) { x += 1; - if x > tabs_area.right() { + if x >= tabs_area.right() { break; } else { buf.set_string(x, tabs_area.top(), title.as_ref(), style);