fix(screen): correctly draw background and eob with 'rightleft' (#22640)

This commit is contained in:
zeertzjq
2023-03-12 12:10:27 +08:00
committed by GitHub
parent 1c4b3d41b5
commit 172227a446
4 changed files with 74 additions and 11 deletions

View File

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