summaryrefslogtreecommitdiff
path: root/core/draw.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-22 10:29:02 -0300
committerGabriel Schneider <[email protected]>2026-11-22 10:29:02 -0300
commit6544f73a6b50e5ba68564beea7784593bb54348e (patch)
tree4180d5b74cc4c02208b6122618e5b39609b27fc6 /core/draw.zig
parent58180ae7574b5050331797f0ead1a1cec753b2ed (diff)
parent06d61f097346704452cccd3181da87bb93649bd8 (diff)
downloadpardes-6544f73a6b50e5ba68564beea7784593bb54348e.tar.gz
pardes-6544f73a6b50e5ba68564beea7784593bb54348e.zip
integration: the source view's changes to their last slice on the installed tree: main (`stpnsymm`: pardes-merge55, installed 2026-11-22) and pardes-layers-6 (`rtzmwzsk` on `owsluptw`, on pardes-layers-5: `Churn [window]`: for each declaration the count of the changes in the window that touched it, a cell after the line number and a strip by the scroll thumb from grey to red on a log scale, jj and the parse on the worker; the chords `SPC t c` and `SPC t u`; the manual's chapter "Changes on the source view" and the cheatsheet's rows); no conflict; core-test 915/1079 (164 skipped), shell-test 1121/1124; its gate: .scratch/sketch/reorg/merge56, the numbers in PARDES.md (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/draw.zig')
-rw-r--r--core/draw.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/draw.zig b/core/draw.zig
index ed317650..419b3a84 100644
--- a/core/draw.zig
+++ b/core/draw.zig
@@ -86,6 +86,7 @@ pub fn place(p: *Pardes, s: *Surface) void {
s.nregions = 0;
s.nrail_ticks = 0;
s.lanes.clearRetainingCapacity();
+ s.heat.clearRetainingCapacity();
// The facts filled in the walk the frame's places take anyway.
viewFacts(p, &p.facts);
s.facts = &p.facts;
@@ -511,6 +512,7 @@ fn renderPane(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r:
}
try body_layer.joinBody(p, s, arena, pane, r, id, active, rail.*);
+ if (pane.layers.heat > 0) @import("jj.zig").railHeat(p, s, pane, id, rail.rect);
// A terminal panned to its cursor in a view shorter than it: an arrow
// in the gutter's first body row says rows are above (views.zig).
if (pane.pan > 0) s.set(r.x, p.bodyTop(pane, r), "↑", .{ .fg = .{ .rgb = chrome.box } });