Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 28, 2024
1 parent 0633a8b commit 3a6c86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rich/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a6c86e

Please sign in to comment.