summaryrefslogtreecommitdiff
path: root/src/mouse.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/mouse.zig')
-rw-r--r--src/mouse.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mouse.zig b/src/mouse.zig
index 365ed560..5c3821e7 100644
--- a/src/mouse.zig
+++ b/src/mouse.zig
@@ -130,7 +130,7 @@ fn headerSweepRun(p: *Pardes, sweep: HeaderSweep) void {
const at = swept.lo - start;
const focused = p.header_focus and p.header_column == column;
const on = if (focused) tagline.headerSelection(t, text, line) else null;
- const under = if (pardes.wordBoundsAtCol(bar, at)) |b| bar[b.lo..b.hi] else "";
+ const under = if (tagline.wordBoundsAtCol(bar, at)) |b| bar[b.lo..b.hi] else "";
break :click if (on) |sp| (if (at >= sp.lo and at < sp.hi) bar[sp.lo..sp.hi] else under) else under;
};
const word = p.scratch.allocator().dupe(u8, selected) catch return;