diff --git a/src/tui/mode/mini/get_char.zig b/src/tui/mode/mini/get_char.zig index dde4d19..379acd4 100644 --- a/src/tui/mode/mini/get_char.zig +++ b/src/tui/mode/mini/get_char.zig @@ -34,7 +34,7 @@ pub fn Create(options: type) type { self.* = .{ .allocator = allocator, .ctx = .{ .args = try ctx.args.clone(allocator) }, - .value = options.start(self), + .value = if (@hasDecl(options, "start")) options.start(self) else {}, }; try self.commands.init(self); var mode = try keybind.mode("mini/get_char", allocator, .{