summaryrefslogtreecommitdiff
path: root/src/look.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/look.zig')
-rw-r--r--src/look.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/look.zig b/src/look.zig
index 7df48c5a..ab1407ee 100644
--- a/src/look.zig
+++ b/src/look.zig
@@ -1924,7 +1924,7 @@ test "Look hover waits without mutating the pane and input cancels it" {
_ = try p.render(frame.allocator());
const rect = p.rects[p.active];
const word_x = rect.x + config.GUTTER + config.PREFIX_W + 7;
- const body_y = if (p.settings.tag_bottom) rect.y else rect.y + BOX_H;
+ const body_y = rect.y + BOX_H;
const motion = Event{ .mouse = .{ .button = .none, .kind = .motion, .col = word_x, .row = body_y } };
const selections_before = pane.sel;
@@ -1987,7 +1987,7 @@ test "Look hover waits without mutating the pane and input cancels it" {
// first character must be paintable all the way at tag column zero — which
// is TAG_TEXT_INSET, not GUTTER: the grip keeps the gutter and the gap
// beside it separates the grip's hit area from the text.
- const tag_y = if (p.settings.tag_bottom) rect.y + rect.h - BOX_H else rect.y;
+ const tag_y = rect.y;
p.look_hover_preview = .{
.col = rect.x + TAG_TEXT_INSET,
.row = tag_y,