diff options
Diffstat (limited to 'src/pardes.zig')
| -rw-r--r-- | src/pardes.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pardes.zig b/src/pardes.zig index f5001797..ca0980f4 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -6764,6 +6764,15 @@ pub const Pardes = struct { p.reportError(w.pane, "language response", err); return; }; + // What a 9P write that asked it answers: the pane the rows are in + // (a multi-file Rename's preview), not the pane it was asked from. + if (pane.search_pane) |rid| if (p.panes[rid]) |rp| { + p.fs.lsp_result = rp.serial; + }; + if (w.kind == .rename) { + var said_buf: [96]u8 = undefined; + p.setMessage(w.pane, std.fmt.bufPrint(&said_buf, "Rename: {d} edit(s) across files, previewed, not applied", .{nrows}) catch "Rename: previewed"); + } if (panes.Output.traits(from).jumps) { const result = p.panes[pane.search_pane orelse return] orelse return; const file = pane.file orelse return; |
