Skip to content

Commit

Permalink
broken code
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 5, 2021
1 parent a46f835 commit 29e653c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rich/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ def _split_cells(cls, segment: "Segment", cut: int) -> Tuple["Segment", "Segment
_Segment(text[cut:], style, control),
)

if len(text) == self.cell_length:
return (
_Segment(text[:cut], style, control),
_Segment(text[cut:], style, control),
)

cell_size = get_character_cell_size

pos = int((cut / segment.cell_length) * len(text))
Expand Down

0 comments on commit 29e653c

Please sign in to comment.