summaryrefslogtreecommitdiff
path: root/test/mode.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/mode.zig')
-rw-r--r--test/mode.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mode.zig b/test/mode.zig
index 42e61c79..6141d898 100644
--- a/test/mode.zig
+++ b/test/mode.zig
@@ -14,7 +14,7 @@ fn clickModeTag(p: *Pardes) !void {
const text = try pardes.tagline.tagText(p, p.scratch.allocator(), pane);
const col = std.mem.indexOf(u8, text, "Mode") orelse return error.MissingModeTag;
const rect = p.rects[0];
- const row = if (p.settings.tag_bottom) rect.y + rect.h - pardes.BOX_H else rect.y;
+ const row = rect.y;
for ([_]pardes.Mouse.Kind{ .press, .release }) |kind|
p.update(.{ .mouse = .{ .button = .left, .kind = kind, .col = rect.x + pardes.TAG_TEXT_INSET + @as(u16, @intCast(col)), .row = row } });
try std.testing.expect(pane.focus == .tag);