diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 15:35:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | f2091c52e06b0935f69914ac2d76941361cbb969 (patch) | |
| tree | 18e19eec9765ae5b114779848dec02c58d1faa1f /src/pardes.zig | |
| parent | 830e936da4aca7ea802a6a862fa40c0086defd2f (diff) | |
| download | pardes-f2091c52e06b0935f69914ac2d76941361cbb969.tar.gz pardes-f2091c52e06b0935f69914ac2d76941361cbb969.zip | |
A command pane echoes its first command as it does the later ones
Only a reused pane showed '% line' above its command, so the first command's
output stood with nothing saying what made it. Every command is echoed now,
the first too. The goldens of chordcut, cmdexit, cmdword and layout-open gain
that line and the rows below it move down one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index 80a20a0d..5e86f0fd 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -1538,6 +1538,12 @@ test "a command pane shows how its command ended, and the next command there run const dst = exec.execute(p, 1, "make -j8") orelse return error.NoCommandPane; while (p.nextEffect()) |_| {} const pane = p.panes[dst].?; + // Its first command is echoed as every later one is. + { + const first = try panes.Terminal.screenTextAlloc(pane, gpa); + defer gpa.free(first); + try std.testing.expect(std.mem.startsWith(u8, first, "% make -j8")); + } var frame = std.heap.ArenaAllocator.init(gpa); defer frame.deinit(); try std.testing.expect(std.mem.endsWith(u8, try tagline.tagPrefix(p, pane), "(make -j8) running")); |
