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
@@ 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 .
|