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 --- src/pdf_view.zig | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/pdf_view.zig') diff --git a/src/pdf_view.zig b/src/pdf_view.zig index 7f9c7b55..42d923ac 100644 --- a/src/pdf_view.zig +++ b/src/pdf_view.zig @@ -2758,7 +2758,6 @@ fn refreshCleanSections(core: *pardes.Pardes, state: *State) void { @as(usize, @intCast(@max(0, result.body.cur_col))), modal.lineSlice(file.content, row).len, )); - result.body.msel.active = false; result.body.vsel.active = false; result.body.nsel = 0; state.sections_output.?.revision = file.revision; @@ -2793,7 +2792,6 @@ fn rearmCleanSections( file.scroll = 0; result.body.cur_row = 0; result.body.cur_col = 0; - result.body.msel.active = false; result.body.vsel.active = false; result.body.nsel = 0; pane.search_pane = remembered.pane; @@ -2919,7 +2917,6 @@ pub fn resetPageChrome(pane: *pardes.Pane) void { pane.body.cur_row = 0; pane.body.cur_col = 0; pane.body.vsel.active = false; - pane.body.msel.active = false; pane.body.nsel = 0; } @@ -3290,7 +3287,6 @@ pub fn pointerRelease( if (!dragged) state.clearSelection(core.pdf_gpa); pane.body.cur_pinned = true; pane.body.mode = .normal; - pane.body.msel.active = false; pane.body.vsel.active = false; pane.body.normal.clear(); pane.body.nsel = 0; -- cgit v1.3