diff options
Diffstat (limited to 'src/ninep')
| -rw-r--r-- | src/ninep/ctl.zig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index b17f150a..f0dab28d 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -4105,3 +4105,15 @@ test "Tty+bash on a pane ctl is Tty with its argument, as exec and the tag take try testing.expectEqual(Status.ok, r.reply.status); try testing.expect(r.spawned); } + +test "a Rename that reaches other files previews them, says so, and is the pane a waiting write answers" { + const p = try withFile(testing.allocator, "x\n"); + defer p.deinit(); + const id = p.active; + p.fs.lsp_result = null; + p.lspRequest(id, .rename, "sum"); + p.lspResponse(p.lsp_wait.?.id, "lib.rs:2:8 sum\nmain.rs:4:13-15 sum\n"); + const preview = p.panes[p.panes[id].?.search_pane.?].?; + try testing.expectEqual(preview.serial, p.fs.lsp_result.?); + try testing.expect(th.logHas(p, "Rename: 2 edit(s) across files, previewed, not applied")); +} |
