summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 19:55:02 -0300
committerGabriel Schneider <[email protected]>2026-11-19 19:55:02 -0300
commit2ab05b536bc3b063666b5aaab497157adc2a9120 (patch)
tree4b796e6abaf7658294d2b6cbb5d35e0210b88b40 /core/Core.zig
parente4f99d2370c8b44e76b541826d91356d86090f53 (diff)
parent786cddd24e2be36d30847300075cec8c45d1b0ca (diff)
downloadpardes-2ab05b536bc3b063666b5aaab497157adc2a9120.tar.gz
pardes-2ab05b536bc3b063666b5aaab497157adc2a9120.zip
integration: the regular-expression fixes with the fixes the real loops asked for: pardes-regex-2 (mvzr's reads past a pattern cut short patched as it is fetched; the leak of a pattern that does not compile; the soak's corpus check comparing what is visible) and pardes-draw-2 (a step's notice bands and a markdown text's tables made from the step's own state, never from the last frame; a load under way in another live process no crash; an idle pair silent), merged without a conflict; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/Core.zig b/core/Core.zig
index 769d16cd..d1cf1d94 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -1595,6 +1595,10 @@ fn serveFsInner(p: *Pardes, req: ctlfs.Req) ctlfs.Reply {
pub const update = pardes.tape.taped(updateInner);
fn updateInner(p: *Pardes, ev: Event) void {
const v = p.view();
+ // Its bands as its state stands: a step reads them (a press on a chip, a
+ // body's top under them), and what a frame drew, a view put back or a
+ // dump left in Pane.notices (derived) is not what every core has.
+ for (p.panes, 0..) |slot, id| if (slot) |pane| Messages.collectNotices(p, pane, v.rects[id], id);
defer pardes.panes.File.syncTwins(p);
defer p.reportFocus();
// A tick with no deadline due is the one event that cannot change
@@ -1629,7 +1633,6 @@ fn updateInner(p: *Pardes, ev: Event) void {
.tick => {
Stream.step(p);
Messages.advanceMessages(p);
- for (p.panes) |slot| if (slot) |pane| if (pane.file) |*f| f.tables.step(p.settings.tab, pane.gpa, f);
for (0..p.panes.len) |id| exec.flushReplEnter(p, id, false);
},
else => {},
@@ -1813,6 +1816,7 @@ fn noteLateFailureInner(p: *Pardes, id: usize) void {
pub const presented = pardes.tape.taped(presentedInner);
fn presentedInner(p: *Pardes) void {
const v = p.view();
+ for (p.panes, 0..) |slot, id| if (slot) |pane| Messages.collectNotices(p, pane, v.rects[id], id);
if (v.pointer_inside and v.drag != .none) {
v.hover_col = v.pointer_raw_col;
v.hover_row = v.pointer_raw_row;
@@ -2040,8 +2044,6 @@ pub fn nextWake(p: *const Pardes) ?u64 {
for (p.panes) |slot| if (slot) |pane| if (pane.places.busy(pane)) return next;
const kinds = pardes.Kind.wake(p);
if (kinds) |due| if (due <= next) return next;
- // A markdown text's tables still being read from the top (Tables.zig).
- for (p.panes) |slot| if (slot) |pane| if (pane.file) |f| if (f.tables.busy()) return next;
if (pardes.panes.Query.busy(p)) return next;
// A typed Grep waiting out its pause.
const streaming = p.stream.wake(next);