diff options
Diffstat (limited to 'core/Stream.zig')
| -rw-r--r-- | core/Stream.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Stream.zig b/core/Stream.zig index 49329361..e9e7793b 100644 --- a/core/Stream.zig +++ b/core/Stream.zig @@ -1331,6 +1331,8 @@ test "Stream: a big text's declarations are parsed on a worker, never the loop, if (comptime !syntax.minimal_grammars) return error.SkipZigTest; const p = try Pardes.init(testing.allocator, .{ .tty_only = true, .cols = 120, .rows = 40 }); defer p.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC ยง6.6). + p.settings.jumps = .@"new-pane"; var text: std.ArrayList(u8) = .empty; defer text.deinit(testing.allocator); for (0..4000) |i| try text.print(testing.allocator, "fn f{d}() void {{\n _ = needle;\n}}\n", .{i}); @@ -1345,7 +1347,9 @@ test "Stream: a big text's declarations are parsed on a worker, never the loop, p.stream.cancelParse(); shell.q.deinit(); } + // `/` asks in the tag; Alt-Enter keeps it as the query pane (Prompt.zig). for ("/needle") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); + p.update(.{ .key = .{ .cp = pardes.Key.enter, .alt = true } }); const qid = for (p.panes, 0..) |slot, i| { if (slot) |qp| if (qp.query != null) break i; } else return error.NoQueryPane; |
