summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-27 22:05:19 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit08942ef68b10d4ce478bd3c62d306f2a633d51cb (patch)
tree5e47334fcfb2301fe3545bf69ad73ac9967c4cd6 /src/fs.zig
parentfc2bc13e9f45099d4e2fe086e2a52aab7de8ad5c (diff)
downloadpardes-08942ef68b10d4ce478bd3c62d306f2a633d51cb.tar.gz
pardes-08942ef68b10d4ce478bd3c62d306f2a633d51cb.zip
Move body drawing out of pardes.zig into body_layer.zig
Pure move, no behaviour change: renderBody, renderBodyLayer, paintPointerSelection, paintSourceSelection, paintTerminalSelection and bodyText go verbatim to the end of body_layer.zig, which already held the body's layer geometry and hit-testing, so the pane body as the surface shows it is one file. The file doc now says so. The methods become free functions taking `p: *Pardes`; their 16 call sites (render and renderPane, the tag painter, selection and dump code) change from `p.renderBody(..)` to `body_layer.renderBody(p, ..)`. pardes.zig gains `pub const body_layer = @import("body_layer.zig");`; pointerSourceLine, selRegexArmed and cellBounds become pub because the moved code calls them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/fs.zig')
-rw-r--r--src/fs.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fs.zig b/src/fs.zig
index 5817b3a4..4d8a5188 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -39,6 +39,7 @@ const source_files = [_]Source{
.{ .path = "src/surface.zig", .contents = @embedFile("surface.zig") },
.{ .path = "src/colors.zig", .contents = @embedFile("colors.zig") },
.{ .path = "src/Messages.zig", .contents = @embedFile("Messages.zig") },
+ .{ .path = "src/body_layer.zig", .contents = @embedFile("body_layer.zig") },
.{ .path = "src/File.zig", .contents = @embedFile("File.zig") },
.{ .path = "src/Output.zig", .contents = @embedFile("Output.zig") },
.{ .path = "src/Mini.zig", .contents = @embedFile("Mini.zig") },