mod(pane) example layout pane has top and bottom empty row

Fix corresponding RawText line control (i.e. last line and changes to
the window size in regards to the current line).
This commit is contained in:
yves-biener committed 2024-11-09 01:52:37 +01:00
1 parent 9d711ea047
commit ba01bf00bb
2 files changed
+6 -4

No files matched your search

+1 -2
View File
@@ -54,10 +54,9 @@ pub fn Layout(comptime Event: type) type {
}
pub fn content(this: *@This()) !*std.ArrayList(u8) {
const widget_content = try this.widget.content();
this.c.clearRetainingCapacity();
try this.c.appendSlice("\n");
try this.c.appendSlice(widget_content);
try this.c.appendSlice(try this.widget.content());
try this.c.appendSlice("\n");
return &this.c;
}