From 41847fce244fdd0d01971c302b89d1252f6497ed Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 31 Jul 2026 19:01:28 -0300 Subject: a wheel tick slides the pane instead of jumping it --- src/main.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.zig') 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"); +} -- cgit v1.3