diff --git a/rich/segment.py b/rich/segment.py index aa2394cae..86c8c9a9c 100644 --- a/rich/segment.py +++ b/rich/segment.py @@ -129,7 +129,7 @@ def _split_cells(cls, segment: "Segment", cut: int) -> Tuple["Segment", "Segment cell_size = get_character_cell_size - pos = int((cut / cell_length) * (len(text) - 1)) - 1 + pos = int((cut / cell_length) * (len(text))) - 1 if pos < 0: pos = 0