diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-22 02:37:06 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-22 02:37:06 -0300 |
| commit | 58180ae7574b5050331797f0ead1a1cec753b2ed (patch) | |
| tree | 4a866bdfc968afe58f1f954f969b9c0ab00bc449 /core/mouse.zig | |
| parent | 245dd088a5b502c72f94c85bf1cc5bd0ba7ebb56 (diff) | |
| parent | 2015baa4ccd26a74b51e7b7cda0eb3533a325142 (diff) | |
| download | pardes-58180ae7574b5050331797f0ead1a1cec753b2ed.tar.gz pardes-58180ae7574b5050331797f0ead1a1cec753b2ed.zip | |
integration: the tree to install: every client's terminals by the pty's bytes, and the source view's changes to the whole mock: pardes-flip (`uxzzxrtt`, on pardes-merge54: the one road by default, the old one behind PARDES_TERM_SCREEN until it is deleted; a client takes its road from the session's welcome: the wire at 29; the predicted echo kept on the one road; the user's ruling of 2026-11-22) and pardes-layers-5 (`qurmskql` on `yxupukvr` on `tllltqkq` on `qwvwsoww`, on pardes-layers-4: a terminal's output pays less for the layers with `Changes` off; ghost rows: a line taken away whole red across, each change's description after its last line; a changed line's words by the patch view's alignment; `]g` and `[g`; a description row keeps its author and age, a change's rows come before its own description); no conflict; core-test 911/1075 (164 skipped), shell-test 1117/1120; its gate: .scratch/sketch/reorg/merge55, the numbers in PARDES.md (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
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. |
