diff options
Diffstat (limited to 'core/jj.zig')
| -rw-r--r-- | core/jj.zig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/jj.zig b/core/jj.zig index dd54dfc5..6a7d7da4 100644 --- a/core/jj.zig +++ b/core/jj.zig @@ -1528,9 +1528,9 @@ test "a client replays the open of a file at a revision and ends equal" { var repo = try Repo.init(gpa) orelse return error.SkipZigTest; defer repo.deinit(gpa); const R = pardes.replica; - const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(gpa, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(gpa, 1, try a.unit(0, 0)); defer r.deinit(); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}@@-:2", .{repo.file}) })); @@ -1636,9 +1636,9 @@ test "a client replays Changes from what the session's jj answered and ends equa var repo = try Repo.init(gpa) orelse return error.SkipZigTest; defer repo.deinit(gpa); const R = pardes.replica; - const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(gpa, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(gpa, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(gpa, 1, try a.unit(0, 0)); defer r.deinit(); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}@@-", .{repo.file}) })); @@ -1676,10 +1676,10 @@ const WorkerJj = struct { fn init(repo: *const Repo, at: []const u8) !WorkerJj { const shell = try testing.allocator.create(Shell); shell.* = .{ .q = .{ .gpa = testing.allocator, .lsp_allocator = testing.allocator, .io = testing.io } }; - const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{ .vtable = &vtable, .ctx = shell }, false); + const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{ .vtable = &vtable, .ctx = shell }); errdefer a.deinit(); shell.core = a.core; - const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0)); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}{s}", .{ repo.file, at }) })); const id = a.core.view().active; @@ -2011,9 +2011,9 @@ test "ghost rows ride with the text: a line deleted above moves them up, a line var repo = try Ghosts.repo() orelse return error.SkipZigTest; defer repo.deinit(testing.allocator); const R = pardes.replica; - const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0)); defer r.deinit(); var line: [4200]u8 = undefined; r.confirm(try a.local(.{ .command = try std.fmt.bufPrint(&line, "Look {s}", .{repo.file}) })); @@ -2193,9 +2193,9 @@ test "the lanes ride with the text: a line typed in a nested block is nobody's, var repo = try Stack.repo(null) orelse return error.SkipZigTest; defer repo.deinit(testing.allocator); const R = pardes.replica; - const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}, false); + const a = try R.Authority.init(testing.allocator, .{ .cols = 80, .rows = 24 }, .{}); defer a.deinit(); - const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0), false); + const r = try R.Replica.init(testing.allocator, 1, try a.unit(0, 0)); defer r.deinit(); const Keys = struct { fn send(au: *R.Authority, re: *R.Replica, keys: []const u8) !void { |
