summaryrefslogtreecommitdiff
path: root/src/Query.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 00:29:20 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:01:28 -0300
commit2622b04dcf021ff36862a45b6e9c930e5671b9e2 (patch)
tree872b01ce6ce664cd4b9c2190380e1622e4975d46 /src/Query.zig
parent1b12f7aadaf0e0a4570a5985900f61d0fb897f79 (diff)
downloadpardes-2622b04dcf021ff36862a45b6e9c930e5671b9e2.tar.gz
pardes-2622b04dcf021ff36862a45b6e9c930e5671b9e2.zip
layout: four wrappers go to their callers: restoreMinima (ctl.zig's size passes restoreMinimaFrom a null), splitRowForExtent (splitAt passes splitRowFor a null), attach (Query.zig and layout's tests pass attachFrom the owner as giver) and columnFitsHalves (exec.zig's first-document column checks the source column's width there)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Query.zig')
-rw-r--r--src/Query.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Query.zig b/src/Query.zig
index 6a0d43bb..a0ccd0e5 100644
--- a/src/Query.zig
+++ b/src/Query.zig
@@ -318,10 +318,10 @@ fn create(p: *Pardes, owner_id: usize, line: []const u8, source: Source) ?usize
if (p.settings.search_place == .column) {
// On top of the finder column at the right edge (Finder.zig), the
// older query panes folded under it; its preview under it there.
- if (!p.finder.place(p, free) and !layout.attach(p, owner_id, free, want)) exec.placeNew(p, owner_id, owner_id, free, .doc);
+ if (!p.finder.place(p, free) and !layout.attachFrom(p, owner_id, free, want, owner_id)) exec.placeNew(p, owner_id, owner_id, free, .doc);
if (with_preview) _ = makePreview(p, free, p.rects[free].h / 2, free);
return free;
- } else if (!layout.attach(p, owner_id, free, want)) {
+ } else if (!layout.attachFrom(p, owner_id, free, want, owner_id)) {
// An owner too short to give a query pane its rows: placed as any
// new pane is, the one place a search moves another pane.
exec.placeNew(p, owner_id, owner_id, free, .doc);