Rewrite tty_draw_line to be simpler and not to check overlay ranges.

This commit is contained in:
Nicholas Marriott
2026-01-20 21:08:49 +00:00
parent d2e09cb259
commit 25f72cf240
5 changed files with 313 additions and 194 deletions

2
grid.c
View File

@@ -235,7 +235,7 @@ grid_check_y(struct grid *gd, const char *from, u_int py)
int
grid_cells_look_equal(const struct grid_cell *gc1, const struct grid_cell *gc2)
{
int flags1 = gc1->flags, flags2 = gc2->flags;;
int flags1 = gc1->flags, flags2 = gc2->flags;
if (gc1->fg != gc2->fg || gc1->bg != gc2->bg)
return (0);