aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-01-01 02:52:39 +0100
committerGitHub <noreply@github.com>2022-01-01 02:52:39 +0100
commit6fb9c278d8fa1f9e34a2ff6493e62a9a33d1f00f (patch)
tree2ac2234153b613f588a6d750cdbb555cb04686b3
parentdb7fe34017c8ddf360ab7a90d6d1830071f3d1fc (diff)
downloadrneovim-6fb9c278d8fa1f9e34a2ff6493e62a9a33d1f00f.tar.gz
rneovim-6fb9c278d8fa1f9e34a2ff6493e62a9a33d1f00f.tar.bz2
rneovim-6fb9c278d8fa1f9e34a2ff6493e62a9a33d1f00f.zip
chore(fixup): zeer
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index db5e823aec..538604cf79 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -6762,7 +6762,7 @@ void grid_clear_line(ScreenGrid *grid, unsigned off, int width, bool valid)
void grid_invalidate(ScreenGrid *grid)
{
- (void)memset(grid->attrs, -1, (long)grid->Rows * grid->Columns * sizeof(sattr_T));
+ (void)memset(grid->attrs, -1, sizeof(sattr_T) * grid->Rows * grid->Columns);
}
bool grid_invalid_row(ScreenGrid *grid, int row)