From 910c8cb04a77b6dfdfc0ecee4f566bc0cfdec328 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 12 Apr 2024 14:51:25 -0700 Subject: [PATCH] terminal: another enum in a packed struct needs backing int --- src/terminal/Terminal.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/Terminal.zig b/src/terminal/Terminal.zig index cc58093bf..94d32e1a8 100644 --- a/src/terminal/Terminal.zig +++ b/src/terminal/Terminal.zig @@ -112,7 +112,7 @@ flags: packed struct { /// Set via the XTSHIFTESCAPE sequence. If true (XTSHIFTESCAPE = 1) /// then we want to capture the shift key for the mouse protocol /// if the configuration allows it. - mouse_shift_capture: enum { null, false, true } = .null, + mouse_shift_capture: enum(u2) { null, false, true } = .null, } = .{}, /// The event types that can be reported for mouse-related activities.