ratatui-org / ratatui

Rust library that's all about cooking up terminal user interfaces (TUIs) 👨‍🍳🐀
https://ratatui.rs
MIT License
8.82k stars 263 forks source link

fix(span): ensure that zero-width characters are rendered correctly #1165

Closed joshka closed 3 weeks ago

joshka commented 1 month ago

Zero-width characters at the start of a span are now rendered with the subsequent character in the same cell. Zero-width characters in the middle of a span are rendered at the end of the previous cell.

Fixes: https://github.com/ratatui-org/ratatui/issues/1160

codecov[bot] commented 3 weeks ago

Codecov Report

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

Project coverage is 94.3%. Comparing base (10d7788) to head (3e49155).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1165 +/- ## ====================================== Coverage 94.2% 94.3% ====================================== Files 60 60 Lines 14521 14677 +156 ====================================== + Hits 13682 13841 +159 + Misses 839 836 -3 ```

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

joshka commented 3 weeks ago

Let's get this one merged soon