diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-23 19:15:06 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-02 18:13:50 +0000 |
| commit | 40ca86b2d30873ac13c73360a777cfa40b705a7e (patch) | |
| tree | 8f1ea407b3da696fd7faf68718ee4ca19b9796e9 /xmalloc.h | |
| parent | Merge branch 'restore-sighup-handler' (diff) | |
grid: reflow: memcpy() chunks of cells, instead of single cell-by-cell
Instead of walking the old grid cell-by-cell, and checking for
tracking points, OSC-8 URIs etc on each cell, memcpy() sequences of
cells.
For each row, find the end column, by scanning backward, looking for
the first non-empty cell.
Chunk the row based on tracking point coordinates. If there aren’t any
tracking coordinates, or OSC-8 URIs on the current row, the entire row
is copied in one go.
The chunk of cells is copied to the new grid. We may have to split it
up into multiple copies, since not all cells may fit on the current
“new” row.
Care must also be taken to not line break in the middle of a
multi-column character.
Diffstat (limited to 'xmalloc.h')
0 files changed, 0 insertions, 0 deletions
