Add comments explaining the OSC 133 output range search.

This commit is contained in:
Michael Grant
2026-10-07 15:15:00 +02:00
parent 1f892a3f71
commit 833d3dc0fa
3 changed files with 23 additions and 2 deletions

1
grid.c
View File

@@ -1547,6 +1547,7 @@ grid_reflow_split(struct grid *target, struct grid *gd, u_int sx, u_int yy,
/* Insert new lines. */
line = target->sy + 1;
first = grid_reflow_add(target, lines);
/* The first line keeps only the markers within its first at cells. */
memcpy(first, gl, sizeof *first);
first->cellsize = first->cellused = at;
first->flags &= ~GRID_LINE_OSC133_FLAGS;