From 45f152b2de946aa7c7ed5ffe37d07b0930dfc38b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 2 Aug 2026 18:35:29 -0300 Subject: add New builtin for an empty temporary file in the calling column --- src/web.zig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/web.zig') diff --git a/src/web.zig b/src/web.zig index cebbeebf..6ceca904 100644 --- a/src/web.zig +++ b/src/web.zig @@ -375,6 +375,13 @@ export fn pardes_effect_next() u32 { if (e.on) if (s.core.panes[e.pane]) |pane| if (pane.file) |file| putEffect(s, file.path); break :blk 9; }, + // Browser hosts cannot create this file, but surface the request like + // the other host-specific IO effects instead of performing IO here. + .new_file => |e| blk: { + effect_aux0 = e.pane; + effect_aux1 = e.serial; + break :blk 11; + }, .quit => 10, }; } -- cgit v1.3