summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/replica.zig6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/replica.zig b/src/replica.zig
index 0adadb7e..990efb9b 100644
--- a/src/replica.zig
+++ b/src/replica.zig
@@ -128,9 +128,7 @@ const Stepping = struct {
}
};
-fn nowNs() u64 {
- return pardes.FrameStats.nowNs();
-}
+const nowNs = pardes.FrameStats.nowNs;
/// The `p`th percentile of `samples` (sorted here); 100 is the worst.
fn pctOf(samples: []u64, p: usize) u64 {
@@ -3513,7 +3511,6 @@ test "pardes's own keys over a terminal's history apply at once: its view moves
try std.testing.expectEqual(sent.items.len, r.applied);
const here = r.core().panes[shell].?;
try std.testing.expect(terminal.viewOf(here) != null);
- const scrolled = terminal.viewOf(here);
// The shell prints while they wait: its unit, then its delta, which
// sets the view the authority's (at the bottom still): what was applied
// goes on top of it again.
@@ -3543,7 +3540,6 @@ test "pardes's own keys over a terminal's history apply at once: its view moves
try std.testing.expectEqual(digestOf(a), r.digest());
try std.testing.expect(terminal.viewOf(a.core.panes[shell].?) != null);
try std.testing.expectEqual(terminal.viewOf(a.core.panes[shell].?), terminal.viewOf(r.core().panes[shell].?));
- _ = scrolled;
// A rollback with nothing confirmed on top puts the view back: one more
// key up, and another's unit first.
try sent.append(gpa, try gpa.dupe(u8, try r.input(.{ .key = .{ .cp = 'u', .ctrl = true } })));