window: remove deprecated code, add printSegment
This commit is contained in:
parent
9f015b7f49
commit
9d11d13085
1 changed files with 3 additions and 3 deletions
|
@ -446,9 +446,9 @@ pub fn print(self: Window, segments: []const Segment, opts: PrintOptions) !Print
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Deprecated. use print instead
|
/// print a single segment. This is just a shortcut for print(&.{segment}, opts)
|
||||||
pub fn wrap(self: Window, segments: []const Segment) !void {
|
pub fn printSegment(self: Window, segment: Segment, opts: PrintOptions) !PrintResult {
|
||||||
_ = try self.print(segments, .{ .wrap = .word });
|
return self.print(&.{segment}, opts);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// scrolls the window down one row (IE inserts a blank row at the bottom of the
|
/// scrolls the window down one row (IE inserts a blank row at the bottom of the
|
||||||
|
|
Loading…
Reference in a new issue