summaryrefslogtreecommitdiff
path: root/src/mouse.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:42:22 -0300
committerGabriel Schneider <[email protected]>2026-11-04 23:42:22 -0300
commit5a927d1a4e92750bc0d48994df2c2e552d669b01 (patch)
tree7301943c90d813a561400468967e774c39c6d376 /src/mouse.zig
parent63e6ceefc7ab33e31c9d4f83387183e44089e443 (diff)
downloadpardes-5a927d1a4e92750bc0d48994df2c2e552d669b01.tar.gz
pardes-5a927d1a4e92750bc0d48994df2c2e552d669b01.zip
exec, look: pointerOperand, isFile and langOf, one-line wrappers with one caller or four, go to their callers (pardes.zig's recentKeeps asks kindOf), as do the unused themes, BOX_H and pathUnder and look's second alias of fs.zig; missedLine and lookPdfPage take their one type, not anytype; isRecentList drops a .cmd = .Recent origin nothing makes; executeFrom's doc moves off isComment, and a comment look.zig said twice is said once
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
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 c1ea598d..4e0439fa 100644
--- a/src/mouse.zig
+++ b/src/mouse.zig
@@ -1091,7 +1091,7 @@ fn gestureRange(p: *Pardes, id: usize, text: []const u8, on_tag: bool, operand:
.{ .row = @intCast(@max(0, w.row)), .col = @intCast(@max(0, w.lo)) }
else if (operand.expanded orelse operand.preview) |sel| lead: {
// A selection's start in reading order, converted the way
- // `pointerOperand` converts the click itself.
+ // `operandAt` converts the click itself.
const lead = edit.sweepEnds(sel)[0];
const top = lead[0] - @as(i32, pane.tag_rows);
if (top < 0) break :lead null;