summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/tui/tui.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig
index aa1f8849..300e9fea 100644
--- a/dev/tui/tui.zig
+++ b/dev/tui/tui.zig
@@ -3353,13 +3353,14 @@ test "a terminal client's view, opened from a window's, wraps a tag at its own w
if (region.kind != .tag) continue;
for (region.rect.y..region.rect.y + region.rect.h) |y| {
for (s.cells[y * s.cols ..][region.rect.x..][0..region.rect.w]) |cell| try shown.appendSlice(gpa, if (cell.len == 0) " " else cell.grapheme());
- try shown.append(gpa, '\n');
}
}
// Each of its words shows: wrapped at its rows' width, none lost
- // between a row cut short and the next.
+ // between a row cut short and the next (its rows read on, as a word
+ // the wrap cuts runs on to the next).
+ errdefer std.debug.print("{s}\n", .{shown.items});
for (&words) |*w| if (std.mem.indexOf(u8, shown.items, w) == null) {
- std.debug.print("{s} is not shown in the tag:\n{s}\n", .{ w, shown.items });
+ std.debug.print("{s} is not shown in the tag\n", .{w});
return error.TestUnexpectedResult;
};
}