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 6d694b42..cc36ac04 100644
--- a/test/mode.zig
+++ b/test/mode.zig
@@ -16,7 +16,7 @@ fn clickModeTag(p: *Pardes) !void {
const rect = p.rects[0];
const row = if (p.settings.tag_bottom) rect.y + rect.h - pardes.BOX_H else rect.y;
for ([_]pardes.Mouse.Kind{ .press, .release }) |kind|
- p.update(.{ .mouse = .{ .button = .left, .kind = kind, .col = rect.x + pardes.config.GUTTER + @as(u16, @intCast(col)), .row = row } });
+ 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.tag_edit);
}