From 8995e74e234f73c106145a4b4ce40b566800b1c6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 10 Sep 2022 11:01:40 -0700 Subject: [PATCH] rows are dirty when initialized --- src/terminal/Screen.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/terminal/Screen.zig b/src/terminal/Screen.zig index 43bbf3901..c6cf467e3 100644 --- a/src/terminal/Screen.zig +++ b/src/terminal/Screen.zig @@ -818,6 +818,9 @@ pub fn getRow(self: *Screen, index: RowIndex) Row { // Store the header row.storage[0].header.id = id; + // Mark that we're dirty since we're a new row + row.storage[0].header.flags.dirty = true; + // We only need to fill with runtime safety because unions are // tag-checked. Otherwise, the default value of zero will be valid. if (std.debug.runtime_safety) row.fill(.{});