loop: null event continues inner loop

This commit is contained in:
Tim Culverhouse 2024-07-19 11:44:09 -05:00
parent 0e06467a61
commit 20bbb25727
2 changed files with 2 additions and 1 deletions

View file

@ -28,6 +28,7 @@ pub fn main() !void {
// Optionally enter the alternate screen
try vx.enterAltScreen(tty.anyWriter());
try vx.queryTerminal(tty.anyWriter(), 1 * std.time.ns_per_s);
// We'll adjust the color index every keypress
var color_idx: u8 = 0;

View file

@ -154,7 +154,7 @@ pub fn Loop(comptime T: type) type {
read_start = 0;
seq_start += result.n;
const event = result.event orelse continue :read_loop;
const event = result.event orelse continue;
try handleEventGeneric(self, self.vaxis, &cache, Event, event, paste_allocator);
}
}