summaryrefslogtreecommitdiff
path: root/src/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.zig')
-rw-r--r--src/exec.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exec.zig b/src/exec.zig
index 63bb4c1c..3b68a6fd 100644
--- a/src/exec.zig
+++ b/src/exec.zig
@@ -552,7 +552,7 @@ const repl_quiet_ns: u64 = 100 * std.time.ns_per_ms;
/// The host's clock now; core time (`now_ns`, `stepped_ns`) is as old as
/// the last frame, seconds in an idle session.
pub fn clockNow(p: *Pardes) u64 {
- return if (p.host.vtable.now) |clock| clock(p.host.ctx) else p.now_ns;
+ return if (p.host.vtable.now) |clock| clock(p.host.ctx) else p.clock.now_ns;
}
/// Sends the Enters a paste into pane `id`'s REPL is owed: when the REPL
@@ -567,7 +567,7 @@ pub fn flushReplEnter(p: *Pardes, id: usize, answered: bool) void {
pane.repl_enter_due_ns = clockNow(p) + repl_quiet_ns;
return;
}
- if (!answered and p.now_ns < pane.repl_enter_due_ns) return;
+ if (!answered and p.clock.now_ns < pane.repl_enter_due_ns) return;
for (0..pane.repl_enter) |_| p.emitWrite(id, "\r");
pane.repl_enter = 0;
}