summaryrefslogtreecommitdiff
path: root/core/normal.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 20:31:32 -0300
committerGabriel Schneider <[email protected]>2026-11-19 20:31:32 -0300
commit0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch)
treef2e288668decded9276ebc45907f16d651b06f9e /core/normal.zig
parent2ab05b536bc3b063666b5aaab497157adc2a9120 (diff)
parentbf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff)
downloadpardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.tar.gz
pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.zip
integration: a pane's and a view's slot as types, with the regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; 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/normal.zig')
-rw-r--r--core/normal.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/normal.zig b/core/normal.zig
index ef7618b8..ae6c2d18 100644
--- a/core/normal.zig
+++ b/core/normal.zig
@@ -356,7 +356,7 @@ pub fn jumpKey(p: *Pardes, pane: *Pane, t: *Text, key: Key) void {
defer pane.jump.clearRetainingCapacity();
if (chosen >= pane.jump.items.len) return;
const r = pane.jump.items[chosen];
- const text = edit.flatSurface(p.editor(), t) catch |err| return p.reportError(p.view().active, "edit", err);
+ const text = edit.flatSurface(p.editor(), t) catch |err| return p.reportError(.at(p.view().active), "edit", err);
if (!t.select) return t.setRange(p.settings.tab, text, 0, .{ .anchor = @min(r.anchor, r.head), .head = @max(r.anchor, r.head) }, true);
// select mode stretches the primary to the word (helix Movement::Extend)
const pr = t.primaryRange(text, 0);
@@ -598,7 +598,7 @@ fn searchStep(e: Editor, t: *Text, text: []const u8, forward: bool, count: u32)
const name = if (e.register.* != 0) e.register.* else e.registers.last_search;
const pat = e.registers.value(name, 0) orelse return;
var re = SearchRegex.compile(e.scratch, pat) catch {
- e.p.setMessage(v.active, "invalid search pattern");
+ e.p.setMessage(.at(v.active), "invalid search pattern");
return;
};
var hay = text;
@@ -621,7 +621,7 @@ fn searchStep(e: Editor, t: *Text, text: []const u8, forward: bool, count: u32)
wrapped = true;
break :blk lastMatch(&re, hay, from, hay.len);
}) orelse {
- e.p.setMessage(v.active, "no more matches");
+ e.p.setMessage(.at(v.active), "no more matches");
return;
};
if (found.end == 0) return;
@@ -636,7 +636,7 @@ fn searchStep(e: Editor, t: *Text, text: []const u8, forward: bool, count: u32)
ranges[got.pri] = next;
t.setRanges(e.tab, text, ranges[0..got.n], &.{}, got.pri, true);
}
- if (wrapped) e.p.setMessage(v.active, "wrapped around document");
+ if (wrapped) e.p.setMessage(.at(v.active), "wrapped around document");
}
t.show(e.tab);
}