From 314f20a44fdfdc382b0ce9d124290d3e7d702d42 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 12 Mar 2023 15:41:39 +0800 Subject: test: use a wider screen in the rightleft winhl test (#22641) With a wide screen this actually previously caused an overflow. --- src/nvim/grid.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/grid.c b/src/nvim/grid.c index f20a9a847d..cd70e98047 100644 --- a/src/nvim/grid.c +++ b/src/nvim/grid.c @@ -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]); } -- cgit