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/views.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/views.zig') diff --git a/src/views.zig b/src/views.zig index b1786f83..337b5a23 100644 --- a/src/views.zig +++ b/src/views.zig @@ -56,7 +56,7 @@ pub const fields = [_][:0]const u8{ const pane_fields = [_][:0]const u8{ "focus", "vweight", "collapsed", "attached_to", "hscroll", "tag_scroll", "tag_top", "tag_rows", "view", "notices", "pan" }; /// The body's: its cursor, selections and mode. Its undo stays the pane's. -const body_fields = [_][:0]const u8{ "mode", "cur_pinned", "cur_row", "cur_col", "msel", "vsel", "sels", "nsel", "select", "sticky_col", "restore_cursor", "last_edit", "reg_wait", "normal", "find_op", "find_ch" }; +const body_fields = [_][:0]const u8{ "mode", "cur_pinned", "cur_row", "cur_col", "vsel", "sels", "nsel", "select", "sticky_col", "restore_cursor", "last_edit", "reg_wait", "normal", "find_op", "find_ch" }; pub const View = Part(Pardes, &fields); @@ -303,7 +303,6 @@ fn apply(pane: *Pane, v: *const PaneView) void { f.scroll = @min(v.scroll, lines -| 1); if (pane.body.cur_row >= lines) { pane.body.vsel.active = false; - pane.body.msel.active = false; pane.body.nsel = 0; } _ = pardes.edit.clampFileCursor(&pane.body); -- cgit v1.3