From 6ee1b3998e55fe66584b968aab342b422d8bb502 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Thu, 8 Jan 2026 13:50:33 -0600 Subject: [PATCH] osc: no defaults on Parser fields --- src/terminal/osc.zig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/terminal/osc.zig b/src/terminal/osc.zig index dd31224e2..64b409cdd 100644 --- a/src/terminal/osc.zig +++ b/src/terminal/osc.zig @@ -315,22 +315,22 @@ pub const Parser = struct { /// Optional allocator used to accept data longer than MAX_BUF. /// This only applies to some commands (e.g. OSC 52) that can /// reasonably exceed MAX_BUF. - alloc: ?Allocator = null, + alloc: ?Allocator, /// Current state of the parser. - state: State = .start, + state: State, /// Buffer for temporary storage of OSC data - buffer: [MAX_BUF]u8 = undefined, + buffer: [MAX_BUF]u8, /// Fixed writer for accumulating OSC data - fixed: ?std.Io.Writer = null, + fixed: ?std.Io.Writer, /// Allocating writer for accumulating OSC data - allocating: ?std.Io.Writer.Allocating = null, + allocating: ?std.Io.Writer.Allocating, /// Pointer to the active writer for accumulating OSC data - writer: ?*std.Io.Writer = null, + writer: ?*std.Io.Writer, /// The command that is the result of parsing. - command: Command = .invalid, + command: Command, pub const State = enum { start,