diff options
Diffstat (limited to 'src/Messages.zig')
| -rw-r--r-- | src/Messages.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Messages.zig b/src/Messages.zig index 8fa89125..fbcc0343 100644 --- a/src/Messages.zig +++ b/src/Messages.zig @@ -525,7 +525,7 @@ fn collectBands(p: *Pardes, pane: *Pane, r: Rect, id: usize) void { if (id == p.active and p.leader_on) pane.notices.push(.leader); // Del's question shows once its delay is up: answered before that, it // was never there. - const del_waiting = pane.prompt == .del_side and pane.question_due_ns > p.now_ns; + const del_waiting = pane.prompt == .del_side and pane.question_due_ns > p.clock.now_ns; if (pane.promptText()) |text| if (text.len > 0 and !del_waiting) pane.notices.push(.prompt); // A pane only has so many rows to give. When they do not all fit the // LAST ones survive, because the prompt is last and it is the one @@ -886,7 +886,7 @@ test "an idle core wants no wake and a lingering message sleeps to its linger's p.update(.{ .key = .{ .cp = 'x' } }); try std.testing.expectEqual(Pane.MessagePhase.lingering, pane.msg_life.phase); const linger = messageFrames(p.settings.message_linger_ms); - const due = p.stepped_ns + linger * frame; + const due = p.clock.stepped_ns + linger * frame; try std.testing.expectEqual(@as(?u64, due), p.nextWake()); p.needs_frame = false; p.advance(due - frame); @@ -901,7 +901,7 @@ test "an idle core wants no wake and a lingering message sleeps to its linger's try std.testing.expect(p.executeBuiltinLine(p.active, "MessageLinger 5000")); try std.testing.expect(p.executeBuiltinLine(p.active, "Msg again")); p.update(.{ .key = .{ .cp = 'x' } }); - const long_due = p.stepped_ns + messageFrames(5000) * frame; + const long_due = p.clock.stepped_ns + messageFrames(5000) * frame; try std.testing.expectEqual(@as(?u64, long_due), p.nextWake()); p.advance(long_due); try std.testing.expectEqual(@as(usize, 0), pane.msg_len); |
