summaryrefslogtreecommitdiff
path: root/src/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.zig')
-rw-r--r--src/exec.zig13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/exec.zig b/src/exec.zig
index c14a648c..8f84d2c6 100644
--- a/src/exec.zig
+++ b/src/exec.zig
@@ -485,8 +485,10 @@ pub fn isFile(path: []const u8) bool {
pub fn kindOf(path: []const u8) ?std.Io.File.Kind {
var buf: [4096]u8 = undefined;
const z = std.fmt.bufPrintSentinel(&buf, "{s}", .{path}, 0) catch return null;
- pardes.turn.yield();
- defer pardes.turn.back();
+ return pardes.tape.site(.kind, null, kindHost, .{z});
+}
+
+fn kindHost(z: [:0]const u8) ?std.Io.File.Kind {
const stat = @import("fs.zig").statPath(std.Io.Threaded.global_single_threaded.io(), z, .{}) catch return null;
return stat.kind;
}
@@ -1116,7 +1118,7 @@ pub fn applySettingBuiltin(p: *Pardes, setting: config.Runtime.Setting, arg: ?[]
}
if (comptime pardes.hosted) {
var why: [320]u8 = undefined;
- if (@import("host_io.zig").Shell.refusal(want[0..@min(want.len, 200)], &why)) |refused| {
+ if (pardes.tape.value(.shell, @import("host_io.zig").Shell.refusal, .{ want[0..@min(want.len, 200)], &why })) |refused| {
var text: [340]u8 = undefined;
return p.reportFailure(p.active, std.fmt.bufPrint(&text, "Shell: {s}", .{refused}) catch "Shell: no such shell");
}
@@ -1161,10 +1163,7 @@ pub fn applySettingBuiltin(p: *Pardes, setting: config.Runtime.Setting, arg: ?[]
for (p.panes, 0..) |slot, id| {
p.surface.body_layers[id].rows = 0;
const pane = slot orelse continue;
- pane.body_rows = 0;
- pane.body_visible_rows = 0;
- pane.context_row_limit = null;
- pane.wrap_n = 0;
+ pane.geometry_key = 0;
}
p.abandonPanelAnimations();
}