Skip to content

Commit

Permalink
Merge branch 'double-width-wrapping-fix' of github.com:willmcgugan/ri…
Browse files Browse the repository at this point in the history
…ch into double-width-wrapping-fix
  • Loading branch information
darrenburns committed Nov 7, 2023
2 parents 0280567 + 077ef44 commit 3863739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rich/_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def divide_line(text: str, width: int, fold: bool = True) -> list[int]:
for start, _end, word in words(text):
word_length = _cell_len(word.rstrip())
remaining_space = width - cell_offset
word_fits_remaining_space = remaining_space - word_length >= 0
word_fits_remaining_space = remaining_space >= word_length

if word_fits_remaining_space:
# Simplest case - the word fits within the remaining width for this line.
Expand Down

0 comments on commit 3863739

Please sign in to comment.