diff options
Diffstat (limited to 'core/mouse.zig')
| -rw-r--r-- | core/mouse.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/mouse.zig b/core/mouse.zig index 465d8a01..e41f8910 100644 --- a/core/mouse.zig +++ b/core/mouse.zig @@ -1250,6 +1250,14 @@ fn dragRelease(p: *Pardes, button: Mouse.Button) void { } } else { const clk = pane.sel[b]; + // A right-click on a ghost row (jj.zig) looks at its line + // in the revision it came from. + if (s.button == config.look_button and clk.r0 >= pane.tag_rows and clk.r0 == clk.r1 and clk.c0 == clk.c1 and + pane.layers.lanes > 0 and @import("jj.zig").lookGhost(p, s.id, clk.r0 - pane.tag_rows)) + { + pane.sel[b].state = .none; + return; + } // A right-click on a line NUMBER looks at that line of // this file -- a sticky context header's number included, // since the row map holds each header's own source line. |
