← Winnitude! Search  ·  Reader Mode (890 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 28 LINKS

Preserve combining characters in terminal rows by Boulea7 · Pull Request #1067 · bpython/bpython

Repository navigation

Preserve combining characters in terminal rows - #1067


Open
Boulea7 wants to merge 1 commit into bpython:main from Boulea7:fix/combining-characters-in-terminal-rows
Open

Preserve combining characters in terminal rows #1067 Boulea7 wants to merge 1 commit into bpython:main from Boulea7:fix/combining-characters-in-terminal-rows

Conversation

Boulea7 commented Dec 3, 2026



Copy link Copy Markdown

When a formatted row contains combining marks, it can fit the terminal even though its Python length exceeds the number of columns. Printing html.entities.html5 can crash the Curtsies frontend while it paints that row.

Keep the complete formatted row in the current display and history. When a completion box covers part of such a row, place it by terminal columns so the visible suffix keeps its combining marks.

Refs bpython/curtsies#173 and #1020 .

Verified with Curtsies 0.4.3 in real tmux panes at 28, 88, and 101 columns. The original examples print and accept another command. Above-prompt completion keeps the text visible beside the box, including when a nearby line contains a tab. The local pytest suite passed 345 tests.

Prepared with AI assistance.

Preserve combining characters in terminal rows e72454a

codecov
Bot
commented Dec 3, 2026 · edited Loading



Copy link Copy Markdown

Codecov Report

❌ Patch coverage is 95.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.15%. Comparing base (1a919d3 ) to head (e72454a ).
⚠️ Report is 88 commits behind head on main.

Files with missing lines Patch % Lines
bpython/curtsiesfrontend/replpainter.py 94.59% 2 Missing ⚠️
bpython/curtsiesfrontend/repl.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1067      +/-   ##
==========================================
- Coverage   76.51%   76.15%   -0.37%     
==========================================
  Files          62       60       -2     
  Lines        8308     8631     +323     
==========================================
+ Hits         6357     6573     +216     
- Misses       1951     2058     +107     

☔ View full report in Codecov by Harness .
📢 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.
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

1 participant