window: fix wrap method
The wrap method was returning a bool from the call to print. Fix this.
This commit is contained in:
parent
c65dab952c
commit
22af4908a1
1 changed files with 1 additions and 1 deletions
|
@ -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" {
|
||||||
|
|
Loading…
Reference in a new issue