diff options
Diffstat (limited to 'core/Core.zig')
| -rw-r--r-- | core/Core.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/Core.zig b/core/Core.zig index 385c3e74..177a6e78 100644 --- a/core/Core.zig +++ b/core/Core.zig @@ -355,6 +355,10 @@ lsp_ask: Ask = .{}, pipe: Pipe = .{}, /// A query pane's Grep, and its Find's listing, on a worker (Stream.zig). stream: Stream = .{}, +/// What jj answered for each pane's `Changes` (jj.zig), by its serial: the +/// session's list, not a field of every pane (a digest and a rollback copy +/// walk every pane's fields at every step). +changes: std.ArrayList(@import("jj.zig").Changes) = .empty, fs: filesystem.Namespace = .{}, boot: Boot = .shell, @@ -864,6 +868,8 @@ pub fn deinit(p: *Pardes) void { for (p.spawn_dirs) |d| if (d) |dir| gpa.free(dir); p.pipe.deinit(gpa); p.stream.deinit(gpa); + for (p.changes.items) |*c| c.deinit(gpa); + p.changes.deinit(gpa); p.handover.deinit(gpa); if (p.stream.ahead.len > 0) p.tree_sitter_gpa.free(p.stream.ahead); p.locations_cache.deinit(p.tree_sitter_gpa); |
