test: use a wider screen in the rightleft winhl test (#22641)

With a wide screen this actually previously caused an overflow.
This commit is contained in:
zeertzjq
2023-03-12 15:41:39 +08:00
committed by GitHub
parent 172227a446
commit 314f20a44f
2 changed files with 19 additions and 9 deletions

View File

@@ -549,6 +549,7 @@ void grid_put_linebuf(ScreenGrid *grid, int row, int coloff, int endcol, int cle
}
if (bg_attr) {
assert(off_from == (size_t)col);
for (int c = col; c < endcol; c++) {
linebuf_attr[c] = hl_combine_attr(bg_attr, linebuf_attr[c]);
}