diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-28 20:48:35 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-28 21:06:05 -0300 |
| commit | a48a825b06cc45947adaecf42073ed86af8b7a2d (patch) | |
| tree | 509cacc7f59b947c37d42b5236e5b51f9e6181e6 /test | |
| parent | be98a09274b597649fe8a53eb3ce43f7151201d7 (diff) | |
| download | pardes-a48a825b06cc45947adaecf42073ed86af8b7a2d.tar.gz pardes-a48a825b06cc45947adaecf42073ed86af8b7a2d.zip | |
ghostty 1.4.0: pin the release (83fb9562), six days past the main commit we had; vaxis and uucode stay on the commits it pins
What reaches pardes: ED 3 now flags tracked pins on the history it erases `garbage` and takes away the kitty placements there (they used to come back at the pane's top), a cancelled or aborted APC runs nothing, and scrollClear keeps the cursor's style and hyperlink valid when it prunes the cursor's page. No API pardes calls changed.
ED 3, decided by terminal.zig's own rule for rows that are gone: an edited copy or a selection (vsel, msel, the extra ranges) whose top row ED 3 erased goes, rather than being clamped to row 0. The undo history keeps its copy, at the top. `partial_clear_history` asserts it; MarkedHandler.lost and CommandOutput.whole say what ED 3 does now.
Tests: ED 3 takes away a placement in the history it erases; a finished command's output erased by a later ED 3 is not whole and has no text; a selection on an erased row goes, one on the screen stays.
CHANGELOG; docs/render-pipeline.md and Post.zig name ghostty 1.4.0 (its shadertoy Uniforms are unchanged).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/panes.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/panes.zig b/test/panes.zig index 28f14d94..e2cd85dc 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -2007,6 +2007,14 @@ test "terminal edits and undo survive partial history clearing and whole-screen }; p.update(.{ .output = .{ .pane = 0, .bytes = bytes } }); const expected: i32 = if (action == .clear_history) 2 else 0; + // The copy's top row was in the history ED 3 erased: the copy goes + // with it (terminal.zig's rule for rows that are gone), and the + // selection made in it too. Undo still has it, at the top. + if (action == .partial_clear_history) { + try std.testing.expect(pane.ovl == null); + try std.testing.expect(!pane.body.vsel.active); + } + if (action == .clear_history) try std.testing.expect(pane.ovl != null); if (pane.ovl) |edit| { try std.testing.expectEqual(expected, edit.row); try std.testing.expectEqual(@as(i32, if (action == .clear_history or action == .partial_clear_history) 2 else 1), edit.rows); |
