diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 05:33:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 9b623d635b79f97122f512153b974dfa434f85ab (patch) | |
| tree | 31b6c502d4777c64ef5315260f1a560718bb259c /src/mouse.zig | |
| parent | 2fe2c920513fc78b61039714bf4d11ae48169f40 (diff) | |
| download | pardes-9b623d635b79f97122f512153b974dfa434f85ab.tar.gz pardes-9b623d635b79f97122f512153b974dfa434f85ab.zip | |
@p names a pane by its serial, as /index and the log do
A +Search row for a pane with no path (a terminal's), a jump list row and
a line-number look said @p<slot>, the pane's place in the core's table,
which no client can see. They now say @p<serial>, and @p resolves a
serial. Re-recorded by name, their diffs checked: jumps, ttylook and
psearch (whose waits now say @p1) for @p<serial>, and with them argv,
nested, reflow, tinywin, ttyhelp and ttyonly for the boot scratch now
named <cwd>/+New (the change before).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/mouse.zig')
| -rw-r--r-- | src/mouse.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mouse.zig b/src/mouse.zig index 0d1bfadd..cb5512ad 100644 --- a/src/mouse.zig +++ b/src/mouse.zig @@ -1032,7 +1032,7 @@ fn dragRelease(p: *Pardes, button: Mouse.Button) void { if (line >= 0) { pane.sel[b].state = .none; var buf: [48]u8 = undefined; - const target = std.fmt.bufPrint(&buf, "@p{d}:{d}", .{ s.id, @as(usize, @intCast(line)) + 1 }) catch return; + const target = std.fmt.bufPrint(&buf, "@p{d}:{d}", .{ pane.serial, @as(usize, @intCast(line)) + 1 }) catch return; exec.runBuiltin(p, config.look_cmd, s.id, "", target); return; } |
