From 93c634c86659dcda0ef0788ef7520979b47b6cf7 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 3 Oct 2025 13:27:24 -0700 Subject: [PATCH] flush output for our builddata executable Fixes #9018 We were truncated our terminfo causing tmux to not respect some features. --- src/Surface.zig | 2 ++ src/main_build_data.zig | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Surface.zig b/src/Surface.zig index 403a628d2..018c4206b 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -3998,6 +3998,8 @@ pub fn cursorPosCallback( crash.sentry.thread_state = self.crashThreadState(); defer crash.sentry.thread_state = null; + // log.debug("cursor pos x={} y={} mods={?}", .{ pos.x, pos.y, mods }); + // If the position is negative, it is outside our viewport and // we need to clear any hover states. if (pos.x < 0 or pos.y < 0) { diff --git a/src/main_build_data.zig b/src/main_build_data.zig index 9fffdd0d6..9dd1da395 100644 --- a/src/main_build_data.zig +++ b/src/main_build_data.zig @@ -47,4 +47,5 @@ pub fn main() !void { .@"vim-compiler" => try writer.writeAll(@import("extra/vim.zig").compiler), .terminfo => try @import("terminfo/ghostty.zig").ghostty.encode(writer), } + try stdout_writer.end(); }