aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-18 21:00:58 +0800
committerGitHub <noreply@github.com>2023-08-18 21:00:58 +0800
commitf0e6e2ae463aa5f9c5e64e6fe01c1bab82131933 (patch)
tree1c799fae5935adf000ca7ad91251b9a24a8c6ef4
parentb9e75e575148b956190eb017bb1f6a492d6902ae (diff)
downloadrneovim-f0e6e2ae463aa5f9c5e64e6fe01c1bab82131933.tar.gz
rneovim-f0e6e2ae463aa5f9c5e64e6fe01c1bab82131933.tar.bz2
rneovim-f0e6e2ae463aa5f9c5e64e6fe01c1bab82131933.zip
refactor(grid.c): remove duplicate assignments
They were removed from Vim in patch 9.0.0638.
-rw-r--r--src/nvim/grid.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/grid.c b/src/nvim/grid.c
index e25b1b1a73..e6817cd8be 100644
--- a/src/nvim/grid.c
+++ b/src/nvim/grid.c
@@ -625,12 +625,10 @@ void grid_put_linebuf(ScreenGrid *grid, int row, int coloff, int endcol, int cle
}
grid->attrs[off_to] = linebuf_attr[off_from];
- grid->vcols[off_to] = linebuf_vcol[off_from];
// For simplicity set the attributes of second half of a
// double-wide character equal to the first half.
if (char_cells == 2) {
grid->attrs[off_to + 1] = linebuf_attr[off_from];
- grid->vcols[off_to + 1] = linebuf_vcol[off_from + 1];
}
}