//! docs/typ/reference.typ, Edit . const std = @import("std"); const Session = @import("session").Session; test "edit: a write of an Edit block carries it whole, to a pane's ctl, the root's ctl and exec" { var s = try Session.initFile(std.testing.allocator, "foo x\nfoo y\n"); defer s.deinit(); const n = try s.focused(); const body = s.at("/pane/{d}/body", .{n}); try s.write(s.at("/pane/{d}/ctl", .{n}), "Edit ,x/foo/{\ni/[/\na/]/\n}\n"); try s.expect(body, "[foo] x\n[foo] y\n"); try s.write("/ctl", "Edit ,x/\\[/{\nc/