Skip to content

Bugfix: Terminal.wrap drops color escape sequence#352

Merged
jquast merged 5 commits intomasterfrom
jq/bugfix-wrap
Feb 6, 2026
Merged

Bugfix: Terminal.wrap drops color escape sequence#352
jquast merged 5 commits intomasterfrom
jq/bugfix-wrap

Conversation

@jquast
Copy link
Copy Markdown
Owner

@jquast jquast commented Feb 6, 2026

Bugfix by integration with wcwidth.width() 0.6.0, just released, jquast/wcwidth#207

Closes #351.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.32%. Comparing base (990c181) to head (696d526).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #352      +/-   ##
==========================================
- Coverage   98.42%   98.32%   -0.11%     
==========================================
  Files          11       11              
  Lines        2601     2501     -100     
  Branches      459      430      -29     
==========================================
- Hits         2560     2459     -101     
- Misses         31       32       +1     
  Partials       10       10              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jquast jquast marked this pull request as ready for review February 6, 2026 19:28
@jquast jquast changed the title wcwidth>=0.6.0 integration (first pass) Bugfix: Terminal.wrap drops color escape sequence Feb 6, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Feb 6, 2026

CodSpeed Performance Report

Merging this PR will improve performance by ×9.8

Comparing jq/bugfix-wrap (696d526) with master (990c181)

Summary

⚡ 8 improved benchmarks
✅ 20 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
test_center_ascii 62.2 µs 51.9 µs +19.94%
test_wrap_ascii 37.6 ms 3.9 ms ×9.8
test_length_ascii 61.5 µs 46.2 µs +32.99%
test_ljust_ascii 59.1 µs 48.5 µs +21.92%
test_wrap_ansi 28.4 ms 11.5 ms ×2.5
test_wrap_cjk 17.4 ms 3.5 ms ×5
test_wrap_emoji_zwj 5,937.8 µs 862.8 µs ×6.9
test_rjust_ascii 59 µs 48.5 µs +21.63%

@jquast jquast merged commit ae07a28 into master Feb 6, 2026
15 of 16 checks passed
@jquast jquast deleted the jq/bugfix-wrap branch February 6, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminal.wrap drops color escape sequence

1 participant