aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-23 19:15:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-06-02 18:13:50 +0000
commit40ca86b2d30873ac13c73360a777cfa40b705a7e (patch)
tree8f1ea407b3da696fd7faf68718ee4ca19b9796e9 /selection.c
parentMerge 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 'selection.c')
0 files changed, 0 insertions, 0 deletions