summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/file_watch.zig12
-rw-r--r--dev/tui/tui.zig10
2 files changed, 7 insertions, 15 deletions
diff --git a/dev/file_watch.zig b/dev/file_watch.zig
index 84f37c81..6340d189 100644
--- a/dev/file_watch.zig
+++ b/dev/file_watch.zig
@@ -679,7 +679,7 @@ pub fn identify(io: std.Io, path: []const u8) !Identity {
}
test "a restored file is watched again: one clean takes what its file became since the dump, one unsaved keeps its text" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
for ([_]bool{ false, true }) |dirty| {
@@ -721,7 +721,7 @@ test "a restored file is watched again: one clean takes what its file became sin
}
test "a Zerox twin's save wakes its other twin's watch, which says nothing: their text is the file's already" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
@@ -753,7 +753,7 @@ test "a Zerox twin's save wakes its other twin's watch, which says nothing: thei
}
test "ordinary file watches still reconcile changes between open and watch" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
@@ -788,7 +788,7 @@ test "ordinary file watches still reconcile changes between open and watch" {
}
test "a kind's pane whose file changed between its open and its watch opens again from it" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
@@ -817,7 +817,7 @@ test "a kind's pane whose file changed between its open and its watch opens agai
}
test "explicit OS directory watches refresh prefix-preserving listings" {
- if (comptime !supported or !filesystem.platform_has_fs) return;
+ if (comptime !supported) return;
const gpa = std.testing.allocator;
const core = try pardes.Pardes.init(gpa, .{ .tty_only = true });
defer core.deinit();
@@ -930,7 +930,7 @@ test "theme watch reloads valid ZON and keeps the last theme across a bad save"
}
test "a watched file deleted wakes the watch at once, and its pane says so" {
- if (comptime !supported or !filesystem.platform_has_fs or builtin.os.tag != .linux) return;
+ if (comptime !supported or builtin.os.tag != .linux) return;
const io = std.testing.io;
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig
index 5c1945e6..e4e9fd10 100644
--- a/dev/tui/tui.zig
+++ b/dev/tui/tui.zig
@@ -1230,17 +1230,9 @@ const Shell = struct {
}
fn host(s: *Shell) host_io.Host {
- return .{ .ctx = s, .vtable = if (comptime pardes.isolated) &isolated_vtable else &vtable };
+ return .{ .ctx = s, .vtable = &vtable };
}
- const isolated_vtable: host_io.Host.VTable = .{
- .wait_input = waitInput,
- .now = clockNow,
- .present = presentFrame,
- .post_present = postPresent,
- .poll_frame = ownFrame,
- };
-
const vtable: host_io.Host.VTable = .{
.wait_input = waitInput,
.now = clockNow,