diff options
Diffstat (limited to 'src/file_watch.zig')
| -rw-r--r-- | src/file_watch.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/file_watch.zig b/src/file_watch.zig index 33c14248..e8155bb9 100644 --- a/src/file_watch.zig +++ b/src/file_watch.zig @@ -419,6 +419,11 @@ pub fn watchPane( } } +/// Every pane's mark dropped (a Restore's old core, a test's end). +pub fn unwatchAll(fd: c_int, watches: *Table) void { + for (0..pardes.MAX_PANES) |id| watchPane(fd, watches, @intCast(id), null, 0, .{ .text = 0 }); +} + /// Mark the post chain files' directories, one slot each, dropping the /// marks of files no longer in it. pub fn watchShaders(fd: c_int, watches: *Table, paths: []const []const u8) void { |
