summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-31 19:01:28 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:08 -0300
commit41847fce244fdd0d01971c302b89d1252f6497ed (patch)
tree95de3957c7c4f92866f36af6d05af442842892a5 /src/main.zig
parent911215846f1d5a9b2e37a00e74fb9266d4a0884a (diff)
downloadpardes-41847fce244fdd0d01971c302b89d1252f6497ed.tar.gz
pardes-41847fce244fdd0d01971c302b89d1252f6497ed.zip
a wheel tick slides the pane instead of jumping it
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 1a2510de..3808e1f8 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -173,3 +173,11 @@ fn parseCtrlKey(raw: []const u8) ?u21 {
if (c < 'a' or c > 'z' or c == 'c') return null;
return c;
}
+
+// The shells are imported inside main(), which a test build never analyses —
+// so their inline tests need naming here to exist at all. gui.zig only
+// compiles when it IS the shell (it @cImports SDL), hence the comptime gate;
+// under -Dplatform=tty this block analyses to nothing.
+test {
+ if (comptime pardes.platform == .gui) _ = @import("gui/gui.zig");
+}