summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig22
1 files changed, 3 insertions, 19 deletions
diff --git a/core/Core.zig b/core/Core.zig
index e8b5c024..96fd547e 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -1708,7 +1708,7 @@ fn updateInner(p: *Pardes, ev: Event) void {
// Its bands as its state stands: a step reads them (a press on a chip, a
// body's top under them), and what a frame drew, a view put back or a
// dump left in Pane.notices (derived) is not what every core has.
- for (p.panes, 0..) |slot, id| if (slot) |pane| Messages.collectNotices(p, pane, v.rects[id], id);
+ for (p.panes, 0..) |slot, id| if (slot) |pane| Messages.collectNotices(p, pane, v.rects[id]);
defer pardes.panes.File.syncTwins(p);
defer p.reportFocus();
// A tick with no deadline due is the one event that cannot change
@@ -1913,7 +1913,7 @@ fn noteLateFailureInner(p: *Pardes, id: Pane.Id) void {
pub const presented = pardes.tape.taped(presentedInner);
fn presentedInner(p: *Pardes) void {
const v = p.view();
- for (p.panes, 0..) |slot, id| if (slot) |pane| Messages.collectNotices(p, pane, v.rects[id], id);
+ for (p.panes, 0..) |slot, id| if (slot) |pane| Messages.collectNotices(p, pane, v.rects[id]);
if (v.pointer_inside and v.drag != .none) {
v.hover_col = v.pointer_raw_col;
v.hover_row = v.pointer_raw_row;
@@ -2078,7 +2078,7 @@ pub fn sync(p: *Pardes) void {
}.ready, .{pane}));
// Which bands a pane shows is the step's, as its geometry is:
// what is drawn under them, and where a click lands, read it.
- Messages.collectNotices(p, pane, r, id);
+ Messages.collectNotices(p, pane, r);
// The greeting `ls` of a new terminal in a directory is typed at
// its shell's FIRST prompt, or never: typed later it would land
// in whatever runs then, or in the middle of a line someone
@@ -2651,22 +2651,6 @@ test "TreeContext rows in the tag style keep the message rows" {
p.sync();
_ = try p.render(p.scratch.allocator());
try std.testing.expectEqual(full_height, p.surface.body_layers[0].viewport.h);
- // ...and the leader's chip (a shown level's last leaf) is an overlay
- // at the body's top (the level itself wraps the tag: TagState).
- const r = p.view().rects[0];
- p.view().prefix = .leader;
- p.view().leader_n = 0;
- p.view().tag_state.used[0] = 'q';
- p.view().tag_state.due_ns = 1;
- p.clock.now_ns = 1;
- p.sync();
- _ = try p.render(p.scratch.allocator());
- const band = for (p.surface.tagLayers()) |*layer| {
- if (layer.rows != 0 and layer.kind == .notice) break layer;
- } else return error.NoNoticeBand;
- try std.testing.expectEqual(p.bodyTop(pane, r), band.viewport.y);
- try std.testing.expectEqual(r.x + r.w, band.viewport.x + band.viewport.w);
- p.view().prefix = .none;
}
test "TreeContext command and custom tag survive a workspace round trip" {