From 9b623d635b79f97122f512153b974dfa434f85ab Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 05:33:00 -0300 Subject: @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, the pane's place in the core's table, which no client can see. They now say @p, and @p resolves a serial. Re-recorded by name, their diffs checked: jumps, ttylook and psearch (whose waits now say @p1) for @p, and with them argv, nested, reflow, tinywin, ttyhelp and ttyonly for the boot scratch now named /+New (the change before). Co-Authored-By: Claude Opus 5.5 --- src/mouse.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mouse.zig') 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; } -- cgit v1.3