From e20564791e538249c99b65bf8457d3a29df9c981 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 5 Aug 2026 14:32:43 -0700 Subject: [PATCH] libghostty-vt: spacer-tail handling needs to respect slow runtime safety Debug libghostty-vt dependencies embedded in ReleaseFast or ReleaseSmall binaries no longer panic when narrow text overwrites the tail of a wide glyph. Replace the root module's std.debug.runtime_safety gate with build_options.slow_runtime_safety so mixed optimization modes use the dependency's safety configuration consistently. --- src/terminal/Terminal.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/Terminal.zig b/src/terminal/Terminal.zig index 4120e48c9..bbc117a19 100644 --- a/src/terminal/Terminal.zig +++ b/src/terminal/Terminal.zig @@ -1558,7 +1558,7 @@ fn printCell( // So integrity checks pass. We fix this up later so we don't // need to do this without safety checks. - if (comptime std.debug.runtime_safety) { + if (comptime build_options.slow_runtime_safety) { cell.wide = .narrow; }