diff options
Diffstat (limited to 'src/terminal.zig')
| -rw-r--r-- | src/terminal.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.zig b/src/terminal.zig index 8249ee09..5338afa7 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -777,7 +777,7 @@ pub fn mouseBytes(pane: *Pane, buf: *[64]u8, action: MouseAction, button: ?Mouse } else null, .mods = .{ .shift = mods.shift, .alt = mods.alt, .ctrl = mods.ctrl }, .pos = .{ .x = @as(f32, @floatFromInt(col)) + 0.5, .y = @as(f32, @floatFromInt(row)) + 0.5 }, - }, opts) catch unreachable; // a mouse report is at most 31 bytes + }, opts) catch return &.{}; // no report rather than half of one return writer.buffered(); } |
