From 22af4908a1967076d611a9a681b5f759f9e61fe2 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 10 Mar 2024 07:47:28 -0500 Subject: [PATCH] window: fix wrap method The wrap method was returning a bool from the call to print. Fix this. --- src/Window.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Window.zig b/src/Window.zig index 55e4346..3a71654 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -232,7 +232,7 @@ pub fn print(self: Window, segments: []Segment, opts: PrintOptions) !bool { /// prints text in the window with simple word wrapping. pub fn wrap(self: Window, segments: []Segment) !void { - return self.print(segments, .{ .wrap = .word }); + _ = try self.print(segments, .{ .wrap = .word }); } test "Window size set" {