jquast / blessed

Blessed is an easy, practical library for making python terminal apps
http://pypi.python.org/pypi/blessed
MIT License
1.2k stars 72 forks source link

bugfix infinite loop in Terminal.wrap #275

Open jquast opened 4 months ago

jquast commented 4 months ago

Closes https://github.com/jquast/blessed/issues/273 by @grayjk,

The following code enters an infinite loop:

import blessed
blessed.Terminal().wrap('\u5973', 1)

This fixes by explicit check: when

we cannot break down this "Wide" character any further -- so it is allowed to flow outside the given cell.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.33%. Comparing base (167c34e) to head (2526384).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #275 +/- ## ========================================== + Coverage 95.31% 95.33% +0.01% ========================================== Files 9 9 Lines 1025 1028 +3 Branches 216 217 +1 ========================================== + Hits 977 980 +3 Misses 44 44 Partials 4 4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.