From a6051b931e1b769dd9aed77ae8f4254fe1a5788a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 5 Jul 2024 08:52:13 -0700 Subject: [PATCH] terminal: disable zombie styles integrity check --- src/terminal/page.zig | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/terminal/page.zig b/src/terminal/page.zig index 1e34a497c..5b7c4a008 100644 --- a/src/terminal/page.zig +++ b/src/terminal/page.zig @@ -290,7 +290,6 @@ pub const Page = struct { MissingStyle, UnmarkedStyleRow, MismatchedStyleRef, - ZombieStyles, InvalidStyleCount, InvalidSpacerTailLocation, InvalidSpacerHeadLocation, @@ -505,14 +504,16 @@ pub const Page = struct { } } + // NOTE: This is currently disabled because @qwerasd says that + // certain fast paths can cause this but its okay. // Just 1 zombie style might be the cursor style, so ignore it. - if (zombies > 1) { - log.warn( - "page integrity violation zombie styles count={}", - .{zombies}, - ); - return IntegrityError.ZombieStyles; - } + // if (zombies > 1) { + // log.warn( + // "page integrity violation zombie styles count={}", + // .{zombies}, + // ); + // return IntegrityError.ZombieStyles; + // } } }