summaryrefslogtreecommitdiff
path: root/core/Query.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Query.zig')
-rw-r--r--core/Query.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Query.zig b/core/Query.zig
index 96047ca1..d2c663ed 100644
--- a/core/Query.zig
+++ b/core/Query.zig
@@ -289,7 +289,7 @@ fn create(p: *Pardes, owner_id: usize, line: []const u8, source: Source) ?usize
p.reportError(.at(owner_id), "search", error.NoPaneSlots);
return null;
};
- const dir = if (p.exec_header) p.sessionDir() else Pardes.paneDir(owner);
+ const dir = p.execDir(owner_id);
const content = std.mem.concat(p.gpa, u8, &.{ line, "\n" }) catch return null;
const np = Output.open(p, free, dir, .search, "", content) catch |err| {
p.gpa.free(content);