summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 75e91ee9..5d889c86 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -65,6 +65,8 @@ pub const tape = @import("tape.zig");
pub const walk = @import("walk.zig");
pub const screen_state = if (terminal_panes) @import("screen_state.zig") else struct {};
pub const views = @import("views.zig");
+pub const rollback = @import("rollback.zig");
+pub const replica = @import("replica.zig");
pub const image = @import("image.zig");
pub const dump = @import("dump.zig");
pub const lsp = @import("lsp/lsp.zig");
@@ -474,6 +476,8 @@ pub const Loc = struct {
};
test {
+ _ = @import("rollback.zig");
+ _ = @import("replica.zig");
_ = @import("modal.zig");
_ = @import("tagline.zig");
_ = @import("hunks.zig");
@@ -4412,7 +4416,10 @@ pub const Pardes = struct {
// layout: columns own x by weight; panes own y by vweight within a column.
ncol: usize = 0,
col_weight: [MAX_COLS]u64 = @splat(column_weight_unit),
- col_panes: [MAX_COLS][MAX_PANES]usize = undefined,
+ // Zeroed, not undefined: a digest takes the whole of it, a release
+ // build's heap leaves its unused slots whatever was there before, and
+ // two replicas must agree on them (src/replica.zig).
+ col_panes: [MAX_COLS][MAX_PANES]usize = @splat(@splat(0)),
col_n: [MAX_COLS]usize = @splat(0),
/// Each column's tag and the workspace's: Texts like a pane's tag, with
/// no prefix, showing a default until someone edits them.
@@ -4698,7 +4705,7 @@ pub const Pardes = struct {
/// a Restore builtin wants this dump loaded into the live session; the
/// shell consumes it via takeRestore each frame (restore contents stay host-fed)
restore_req: ?[]const u8 = null,
- restore_buf: [1024]u8 = undefined,
+ restore_buf: [1024]u8 = @splat(0),
surface: Surface = .{},
/// The view the fields above are of: whose layout, focus, pointer and