aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/grid.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-03-12 12:10:27 +0800
committerGitHub <noreply@github.com>2023-03-12 12:10:27 +0800
commit172227a44642b67ec8af5b438e5373a3daf61fdb (patch)
tree3249c062a84ca4c9592d522b499c5834208bab09 /src/nvim/grid.c
parent1c4b3d41b538078234282cfba74e5cf07c42c916 (diff)
downloadrneovim-172227a44642b67ec8af5b438e5373a3daf61fdb.tar.gz
rneovim-172227a44642b67ec8af5b438e5373a3daf61fdb.tar.bz2
rneovim-172227a44642b67ec8af5b438e5373a3daf61fdb.zip
fix(screen): correctly draw background and eob with 'rightleft' (#22640)
Diffstat (limited to 'src/nvim/grid.c')
-rw-r--r--src/nvim/grid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/grid.c b/src/nvim/grid.c
index efbeac4f3f..f20a9a847d 100644
--- a/src/nvim/grid.c
+++ b/src/nvim/grid.c
@@ -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]);
}
}