diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-31 09:02:18 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-31 09:02:18 -0300 |
| commit | 6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5 (patch) | |
| tree | 0809839cacd93451df22563271d0c07fd2bafdbd /src/builtins.zig | |
| parent | a479792a1ab2b593642d7f648194bfa23ce01dba (diff) | |
| download | pardes-6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5.tar.gz pardes-6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5.zip | |
Enable native macOS replica sockets and repair platform validation
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index 38a4d835..f59d30fe 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -118,7 +118,6 @@ fn isEnabled(comptime T: type) bool { return !@hasDecl(T, "enabled") or T.enabled; } - /// Why `word`, a builtin some build has, is none in this one: `GUI-only` /// for the GUI's own (`gui_only`), else `not in this build`; null for a /// word that is one here, or in no build. @@ -498,6 +497,10 @@ test "Ligatures is a setting only in the shell that shapes text" { defer p.deinit(); // A desktop build has the word, which a window's view takes alone. try std.testing.expectEqual(desktop, @hasField(registry.Builtin(), "Ligatures")); + if (comptime !desktop) { + try std.testing.expect(!p.executeBuiltinLine(p.active, "Ligatures off")); + return; + } const exists = registry.here(p, .Ligatures); try std.testing.expectEqual(pardes.platform == .gui, exists); // Taken either way: run, or said to be GUI-only. |
