diff options
Diffstat (limited to 'test/panes.zig')
| -rw-r--r-- | test/panes.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/panes.zig b/test/panes.zig index ba3466fb..b68f1e2e 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -911,7 +911,7 @@ test "paste into pane commands and prompts never inserts into the body" { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true }); defer p.deinit(); const pane = try p.setTestFile("one two one\n"); - p.update(.{ .key = .{ .cp = ':' } }); + for ("::") |c| p.update(.{ .key = .{ .cp = c } }); // the tag (`:` on the empty `:` field) p.update(.{ .key = .{ .cp = 'A' } }); // A tag takes a paste as a body does, newline and all. p.update(.{ .paste = " Custom\nCommand" }); @@ -940,7 +940,7 @@ test "a tag that exactly fills its row stays one row, its caret at the edge as a path[0] = '/'; pane.file.?.path = path; try std.testing.expectEqual(width, (try pardes.tagline.tagText(p, p.scratch.allocator(), pane)).len); - p.update(.{ .key = .{ .cp = ':' } }); + for ("::") |c| p.update(.{ .key = .{ .cp = c } }); // the tag (`:` on the empty `:` field) p.update(.{ .key = .{ .cp = 'A' } }); var arena = std.heap.ArenaAllocator.init(p.gpa); defer arena.deinit(); |
