Commit 7ebeb93
committed
fix: collapse orphaned wide-char lead on trailing-column overlay
When a narrow glyph is floated onto the trailing column of an
already-placed wide char, the present loops skipped the trailing
column and the overlay was dropped (the wide char painted over both
cells). Detect the partial overwrite (non-space trailing cell) and
collapse the orphaned lead to a space at width 1 so the overlay glyph
emits. Applied symmetrically to present_cups and present_lines; rows
without overlapping writes stay byte-for-byte identical.
Fixes #751 parent 352cb27 commit 7ebeb93
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
179 | 194 | | |
180 | 195 | | |
181 | 196 | | |
| |||
222 | 237 | | |
223 | 238 | | |
224 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
225 | 255 | | |
226 | 256 | | |
227 | 257 | | |
| |||
0 commit comments