diff options
Diffstat (limited to 'core/mouse.zig')
| -rw-r--r-- | core/mouse.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/mouse.zig b/core/mouse.zig index 6516ea71..72f599dd 100644 --- a/core/mouse.zig +++ b/core/mouse.zig @@ -884,6 +884,12 @@ pub fn handleMouse(p: *Pardes, event: Mouse) void { const word = (body_layer.wordAt(p, arena, id, row, @intCast(@max(0, pointed.sel.c0))) catch return) orelse return; return exec.runBuiltin(p, if (m.button == config.exec_button) config.exec_cmd else config.look_cmd, id, "", arena.dupe(u8, word) catch return); } + // A Look on a message's words after its line: its + // detail unrolled, or rolled up (UX D13). + if (m.button == config.look_button and !pointed.on_tag and mrow >= body_y) if (body_layer.messageAt(p, p.scratch.allocator(), id, mrow - body_y, @intCast(@max(0, pointed.sel.c0))) catch null) |said| { + said.open = !said.open; + return; + }; pane.clearPointerSelection(@backingInt(m.button)); pane.sel[@backingInt(m.button)] = pointed.sel; v.drag = .{ |
