diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 20:53:34 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 22:07:55 -0300 |
| commit | 5b135dc60d4e9f77be0a4f883439f3200ac30d30 (patch) | |
| tree | b7a38b6c48eed83e0dd5f6e93110886bd4b02173 /src/gui/gui.zig | |
| parent | 80d47cd246f37356fd2e705495936f6546613e29 (diff) | |
| download | pardes-5b135dc60d4e9f77be0a4f883439f3200ac30d30.tar.gz pardes-5b135dc60d4e9f77be0a4f883439f3200ac30d30.zip | |
fields #40, a key prefix is one enum: leader_on and ctrl_w_pending, never both, are the session's prefix (none, leader or window); handleKey's three writes of both are one each, and the reads say p.prefix == .leader (Messages.zig, normal.zig, pdf_view.zig, config.zig's test; gui.zig's leader chip on a test step); views.zig's per-view fields name prefix; a dump written before this change loads it as the default once: an Upgrade or Restore from it comes back with no prefix pending, and the wire's semantics change; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), snap all 108 scripts ok; gui unit-test 1518/1519 (1 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index a54a4b7b..99609e5e 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -5815,7 +5815,7 @@ test "the layer cover is the per-cell layer scan, over a core's layouts and rand for (0..32) |step| { core.settings.tag_bottom = step & 1 != 0; if (step & 3 == 0) try std.testing.expect(core.executeBuiltinLine(2, "Collapse")); - core.leader_on = step & 4 != 0; + core.prefix = if (step & 4 != 0) .leader else .none; if (step & 8 != 0) { try std.testing.expect(core.executeBuiltinLine(0, "Msg a message chip over the body")); try std.testing.expect(core.executeBuiltinLine(3, "Msg another")); |
