From 08d2aae5fe1acfba0a5fc9b8a760dafb4a7bdfa3 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 19 Jan 2024 11:02:32 -0600 Subject: [PATCH] cell: set default cell as a space of 1 width Signed-off-by: Tim Culverhouse --- src/cell.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cell.zig b/src/cell.zig index 51ab55f..e57261f 100644 --- a/src/cell.zig +++ b/src/cell.zig @@ -1,11 +1,11 @@ pub const Cell = struct { - char: Character, + char: Character = .{}, style: Style = .{}, }; pub const Character = struct { - grapheme: []const u8, - width: usize, + grapheme: []const u8 = " ", + width: usize = 1, }; pub const Style = struct {