aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-01-25 13:06:30 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-02-06 06:42:38 +0000
commit1111f7e918a3b41512d11023ef5bf9585fa30eb4 (patch)
tree87e4657ac6c31cf4d6ca2611e3815ad4ac7df770 /render.c
parentcomposed: refactor: break out lookup with collision detection (diff)
grid: reflow: handle composed characters longer than 2 cells
The logic that tries to ensure we don't break a line in the middle of a multi-cell character was flawed when the number of cells were larger than 2. In particular, if the number of cells to copy were limited by the number of cells left on the current (new) line, and were less than the length of the multi-cell character, then we failed to insert the correct number of spacers, and also ended up misplacing the multi-cell character; instead of pushing it to the next line, it was inserted on the current line, even though it doesn't fit. Also change how trailing SPACER cells are rendered (cells that are "fillers" at then end of a line, when a multi-column character was pushed over to the next line): don't copy the previous cell's attributes (which may be wrong anyway), use default attributes instead.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions