diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 05:49:29 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 2b04f877c29cf1e95c2fc8154de1da322c7299a3 (patch) | |
| tree | 1430ca4deb53e0fae0b24238af543a13cf2125e1 /src/draw.zig | |
| parent | 779ff8cc27014b8c2f2f078985ab2ca9cf285740 (diff) | |
| download | pardes-2b04f877c29cf1e95c2fc8154de1da322c7299a3.tar.gz pardes-2b04f877c29cf1e95c2fc8154de1da322c7299a3.zip | |
edit: the routing of a text's characters takes the editing context (docs/next-editor.md, R2, first slice): flatSurface, editText, editTextEol, setEditText, setEditTextEnd, setEditTextSpan, paneCursorLines, paneByteAtDisplay, pinPaneCursor, paneWrapWidth, treeIndent, pushUndo, undoStep, stepOwn, selText and vselText take `e: Editor` where they took `*Pardes`, the pane they route to reached through `e.p`; 149 calls in 16 files hand `p.editor()`, nothing else changes; core-test 810 of 949, shell-test 989 of 992, hxdiff 658 / parity 738 / hxgolf 124 with 0 mismatches, replicas pass
Diffstat (limited to 'src/draw.zig')
| -rw-r--r-- | src/draw.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/draw.zig b/src/draw.zig index 92bcc592..10556ac9 100644 --- a/src/draw.zig +++ b/src/draw.zig @@ -645,7 +645,7 @@ fn renderHeaderLayer(p: *Pardes, layer: *pardes.Layer, kind: TagKind, id: u16, v }; } if (editing) |t| { - if (tagline.headerSelection(t, try edit.flatSurface(p, t), line + v.header_top)) |span| { + if (tagline.headerSelection(t, try edit.flatSurface(p.editor(), t), line + v.header_top)) |span| { var col = panes.File.rawDisplayCol(shown, span.lo) -| scroll; const end = panes.File.rawDisplayCol(shown, span.hi) -| scroll; while (col < end and col < columns) : (col += 1) { |
