From a753e08f8a730b196c5fcd492dd708aa0ebd33c6 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Thu, 19 Dec 2024 10:03:06 -0600 Subject: [PATCH] vxfw: don't clear ctx.cmds We assert we have handled all commands before rendering. If we clear, we definitely will pass the assert, even if we don't handle them all. --- src/vxfw/App.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vxfw/App.zig b/src/vxfw/App.zig index daac2e3..90265ca 100644 --- a/src/vxfw/App.zig +++ b/src/vxfw/App.zig @@ -118,7 +118,6 @@ pub fn run(self: *App, widget: vxfw.Widget, opts: Options) anyerror!void { // Reset our context ctx.consume_event = false; ctx.phase = .capturing; - ctx.cmds.clearRetainingCapacity(); } switch (event) { .key_press => {