╭ changed ──────────╮ │src/ui/SubTitle.zig│ ╰───────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │18 }; │ │19 } │ │20 │ │21 -pub fn width(self: Self) !usize { │ │22 - const line_end = std.mem.indexOfScalar(u8, self.content, '\n') orelse self.content.len;│ │23 - return xitui.width.displayWidth(self.content[0..line_end]); │ │24 -} │ │25 - │ │21 pub const View = struct { │ │22 text_box: wgt.TextBox, │ │23 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯