Closed tranzystorekk closed 1 week ago
Attention: Patch coverage is 99.06542%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 94.4%. Comparing base (
3f2f2cd
) to head (76a368a
). Report is 5 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/widgets/reflow.rs | 99.0% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Went ahead and applied changes to resolve the most obvious comments
Thanks for the PR!
The
WordWrapper
implementation is a large and almost unreadable chunk of code, so I decided to do a ground-up cleaning.Highlights and notes in no particular order:
self.wrapped_lines
) and b) processing the input iterator for any input to be wrapped and cached for stepa
unfinished_word
->pending_word
,has_seen_non_whitespace
->non_whitespace_previous
u32::saturating_sub
orVecDeque::drain