mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
grid: reflow: copy combining characters
This commit is contained in:
parent
cb5f80ec6a
commit
40bf01a8e6
1 changed files with 9 additions and 0 deletions
9
grid.c
9
grid.c
|
|
@ -208,6 +208,15 @@ grid_reflow(struct grid *grid, int new_rows, int new_cols,
|
|||
new_row->cells[new_col_idx] = *old_cell;
|
||||
new_row->cells[new_col_idx].attrs.clean = 1;
|
||||
|
||||
struct combining_chars *old_comb_chars
|
||||
= &old_row->comb_chars[c - empty_count + i];
|
||||
struct combining_chars *new_comb_chars
|
||||
= &new_row->comb_chars[new_col_idx];
|
||||
|
||||
new_comb_chars->count = old_comb_chars->count;
|
||||
for (size_t j = 0; j < ALEN(new_comb_chars->chars); j++)
|
||||
new_comb_chars->chars[j] = old_comb_chars->chars[j];
|
||||
|
||||
/* Translate tracking point(s) */
|
||||
if (is_tracking_point && i >= empty_count) {
|
||||
tll_foreach(tracking_points, it) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue