aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/grid.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-12 15:41:39 +0800
committerGitHub <noreply@github.com>2023-03-12 15:41:39 +0800
commit314f20a44fdfdc382b0ce9d124290d3e7d702d42 (patch)
treea553e0b5618ccc3e925ca8ff4f467177e4fb17a7 /src/nvim/grid.c
parent172227a44642b67ec8af5b438e5373a3daf61fdb (diff)
downloadrneovim-314f20a44fdfdc382b0ce9d124290d3e7d702d42.tar.gz
rneovim-314f20a44fdfdc382b0ce9d124290d3e7d702d42.tar.bz2
rneovim-314f20a44fdfdc382b0ce9d124290d3e7d702d42.zip
test: use a wider screen in the rightleft winhl test (#22641)
With a wide screen this actually previously caused an overflow.
Diffstat (limited to 'src/nvim/grid.c')
-rw-r--r--src/nvim/grid.c1
1 files changed, 1 insertions, 0 deletions
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]);
}