diff options
Diffstat (limited to 'src/mouse.zig')
| -rw-r--r-- | src/mouse.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mouse.zig b/src/mouse.zig index b6650cc5..6cec562d 100644 --- a/src/mouse.zig +++ b/src/mouse.zig @@ -1157,7 +1157,7 @@ fn mirrorTtySelection(p: *Pardes, pane: *Pane) void { /// left. A plain click still puts the caret on its cell. fn doubleClick(p: *Pardes, id: usize, t: *panes.Text, on_tag: bool, row: i32, col: i32) void { // The host's clock, which every host keeps (a libc clock is no clock on - // the web or the board) and a test's virtual one replaces. + // the web) and a test's virtual one replaces. const now: i64 = @intCast(p.now_ns / std.time.ns_per_ms); const prev = p.last_click; p.last_click = .{ .id = id, .on_tag = on_tag, .row = row, .col = col, .ms = now }; @@ -1998,7 +1998,6 @@ test "a chorded exec an event reader holds is told with its argument, and writte } test "a wheel over a program that owns it is the program's, in the form it asked for; a shell's scrolls" { - if (comptime !panes.terminal.enabled) return error.SkipZigTest; const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 60, .rows = 16, .tty_only = true }); defer p.deinit(); @@ -2094,7 +2093,6 @@ test "Alt-click is B2 and Super-click B3, kept from the press through the releas } test "a program tracking the mouse gets its clicks, drags and moves over its grid as xterm reports them; Shift and chrome stay pardes's" { - if (comptime !panes.terminal.enabled) return error.SkipZigTest; const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .cols = 60, .rows = 16, .tty_only = true }); defer p.deinit(); |
