loop: null event continues inner loop
This commit is contained in:
parent
0e06467a61
commit
20bbb25727
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue