terminal: disable zombie styles integrity check

This commit is contained in:
Mitchell Hashimoto
2024-07-05 08:52:13 -07:00
parent 4f099af76f
commit a6051b931e

View File

@ -290,7 +290,6 @@ pub const Page = struct {
MissingStyle, MissingStyle,
UnmarkedStyleRow, UnmarkedStyleRow,
MismatchedStyleRef, MismatchedStyleRef,
ZombieStyles,
InvalidStyleCount, InvalidStyleCount,
InvalidSpacerTailLocation, InvalidSpacerTailLocation,
InvalidSpacerHeadLocation, 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. // Just 1 zombie style might be the cursor style, so ignore it.
if (zombies > 1) { // if (zombies > 1) {
log.warn( // log.warn(
"page integrity violation zombie styles count={}", // "page integrity violation zombie styles count={}",
.{zombies}, // .{zombies},
); // );
return IntegrityError.ZombieStyles; // return IntegrityError.ZombieStyles;
} // }
} }
} }