aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/render.c b/render.c
index a5ed362c..e776fcdd 100644
--- a/render.c
+++ b/render.c
@@ -30,6 +30,8 @@ struct glyph_sequence {
struct rgba foreground;
};
+static struct glyph_sequence gseq;
+
static void
grid_render_update(struct terminal *term, struct buffer *buf, const struct damage *dmg)
{
@@ -52,7 +54,8 @@ grid_render_update(struct terminal *term, struct buffer *buf, const struct damag
const int cols = term->cols;
- struct glyph_sequence gseq = {.g = gseq.glyphs};
+ gseq.g = gseq.glyphs;
+ gseq.count = 0;
for (int linear_cursor = start,
row = ((start - term->grid->offset) % term->grid->size) / cols,