summaryrefslogtreecommitdiff
path: root/src/web.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-02 18:35:29 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commit45f152b2de946aa7c7ed5ffe37d07b0930dfc38b (patch)
tree0b18f8484163596414b20ee75a13fb508babc4ec /src/web.zig
parent35cecf26b06cf50d9827056da99d883ca975c39b (diff)
downloadpardes-45f152b2de946aa7c7ed5ffe37d07b0930dfc38b.tar.gz
pardes-45f152b2de946aa7c7ed5ffe37d07b0930dfc38b.zip
add New builtin for an empty temporary file in the calling column
Diffstat (limited to 'src/web.zig')
-rw-r--r--src/web.zig7
1 files changed, 7 insertions, 0 deletions
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,
};
}