From d5158f6a69ce5a1af6372c140b07379ee0ba2446 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:35:15 -0300 Subject: Text, edit, normal, look, Query and their readers: the second selection form msel (whole rows r0..r1, for search-result highlights) goes; a visited search result and a query preview's place line are an explicit vsel like any other, back from the line's end (to the result's location start, the line's start for ordinary path:line rows; to the start for a preview line), and every msel branch in the edit ops, the drawing, the terminal's position tracking and the chords goes (visible: the result's highlight covers its line's characters and newline cell instead of the whole row width, with the ordinary selection colours; y, d and c on it act on that range as after x, its newline included, so a yanked result pastes as a line); selections.md and the ; Alt-; X Alt-x rows of helix-keys.md no longer describe msel; Text's walked shape changes (wire semantics) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/pdf.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/pdf.zig') diff --git a/test/pdf.zig b/test/pdf.zig index e4993bfb..053e45dc 100644 --- a/test/pdf.zig +++ b/test/pdf.zig @@ -1768,7 +1768,7 @@ test "PDF native mouse selection, Look, and highlights share page geometry" { const scroll_before = pv.document_scroll_y; const sels_before = pane.sel; const cursor_before = .{ pane.body.cur_row, pane.body.cur_col }; - const modal_before = .{ pane.body.msel, pane.body.vsel, pane.body.nsel }; + const modal_before = .{ pane.body.vsel, pane.body.nsel }; const selection_before = pv.selection orelse return error.MissingPdfSelection; const selection_quads_before = try gpa.dupe(pdf_impl.Quad, selection_before.quads); defer gpa.free(selection_quads_before); @@ -1823,7 +1823,7 @@ test "PDF native mouse selection, Look, and highlights share page geometry" { try std.testing.expectEqual(scroll_before, pv.document_scroll_y); try std.testing.expect(std.meta.eql(sels_before, pane.sel)); try std.testing.expectEqual(cursor_before, .{ pane.body.cur_row, pane.body.cur_col }); - try std.testing.expect(std.meta.eql(modal_before, .{ pane.body.msel, pane.body.vsel, pane.body.nsel })); + try std.testing.expect(std.meta.eql(modal_before, .{ pane.body.vsel, pane.body.nsel })); const selection_after = pv.selection orelse return error.HoverDroppedPdfSelection; try std.testing.expectEqualSlices(pdf_impl.Quad, selection_quads_before, selection_after.quads); try std.testing.expectEqualStrings(selection_text_before, pv.selection_text); -- cgit v1.3