From bfdc8a9e61dd20c91b68f62187e724d1a98445a4 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 25 Oct 2026 10:27:05 -0300 Subject: query: a language server's list is answered, not typed: one place lands on it (Diagnostics too now), the place fed as the text's places so it is tinted and n/N have it, no query pane; several open the list with the keyboard on its current row in normal mode (showCurrent: the caret on the rows is the current row, n/N take it there), its target shown, Esc in it back to the text as it was; none is a message; line 1 keeps its word as text; Diagnostics keep the keyboard in the text for ]d; lsp-client and lsprelpath step with n, their goldens the caret on the row and no insert marker Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016u3hBPFfja5pK4EBRC1UVD --- test/output.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/output.zig') diff --git a/test/output.zig b/test/output.zig index 8eb389c8..530db77c 100644 --- a/test/output.zig +++ b/test/output.zig @@ -219,9 +219,11 @@ test "references fill the asking text's query pane: sorted under their files, th try std.testing.expectEqual(@as(?usize, 2), source.places.current); try std.testing.expectEqual(@as(i32, 3), source.body.cur_row); try std.testing.expectEqual(@as(usize, 6), results.query.?.total); - // Ctrl-n on line 1, Enter: the keyboard on that ref in the text + // A list answered, not a query typed: the keyboard on its current row in + // normal mode; n, Enter: the keyboard on that ref in the text try std.testing.expectEqual(qid, p.active); - p.update(.{ .key = .{ .cp = 'n', .ctrl = true } }); + try std.testing.expect(results.body.mode == .normal and results.body.cur_row > 0); + p.update(.{ .key = .{ .cp = 'n' } }); try std.testing.expectEqual(@as(?usize, 3), source.places.current); p.update(.{ .key = .{ .cp = Key.enter } }); try std.testing.expectEqual(@as(usize, 0), p.active); -- cgit v1.3