window: fix wrap method

The wrap method was returning a bool from the call to print. Fix this.
This commit is contained in:
Tim Culverhouse 2024-03-10 07:47:28 -05:00
parent c65dab952c
commit 22af4908a1

View file

@ -232,7 +232,7 @@ pub fn print(self: Window, segments: []Segment, opts: PrintOptions) !bool {
/// prints text in the window with simple word wrapping. /// prints text in the window with simple word wrapping.
pub fn wrap(self: Window, segments: []Segment) !void { pub fn wrap(self: Window, segments: []Segment) !void {
return self.print(segments, .{ .wrap = .word }); _ = try self.print(segments, .{ .wrap = .word });
} }
test "Window size set" { test "Window size set" {