summaryrefslogtreecommitdiff
path: root/src/body_layer.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 04:15:28 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit3e2ffcccdf11258ec0339d654166c291ef9edc0e (patch)
tree1f3a8de945e1e373bc64d515fb2c37f7dcfa60bc /src/body_layer.zig
parent34641e435fcbae0af578189760d5ebb05bc07f9a (diff)
downloadpardes-3e2ffcccdf11258ec0339d654166c291ef9edc0e.tar.gz
pardes-3e2ffcccdf11258ec0339d654166c291ef9edc0e.zip
ansi: the command pane's diff colours beside the terminal's (docs/next-terminal.md, Phase 1; reports/diff-module.md, question 3, the user: "keep it but make it close in code to the pager so they're together"): File.DiffOutput and File.recolorDiffOutput move, as they are, from File.zig to src/ansi.zig, where the terminal's painted cells are laid over the body, so the colours a finished command pane's diff is given sit beside the colours its program gave it; body_layer calls ansi.recolorDiffOutput after ansi.recolor as it called File's; File.synStyle and File.SynStyle become pub for it (File's own recolorSyntax still the other caller); Core's diff_output is an ansi.DiffOutput; nothing else changes; core-test 810 of 949 (139 skipped), process-test's diffview and diffstack goldens unchanged (the suite's other failures the base's: lspcomplete, lspcompletemoved; exec once under load, passing on its retry)
Diffstat (limited to 'src/body_layer.zig')
-rw-r--r--src/body_layer.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/body_layer.zig b/src/body_layer.zig
index abd21090..26513b93 100644
--- a/src/body_layer.zig
+++ b/src/body_layer.zig
@@ -346,7 +346,7 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane
panes.Query.paint(p, s, pane, r, body_h);
} else if (pane.isTerminal()) {
ansi.recolor(p, s, pane, r, tx, tw, body_h, body);
- panes.File.recolorDiffOutput(p, s, pane, r, tx, tw, body_h, body);
+ ansi.recolorDiffOutput(p, s, pane, r, tx, tw, body_h, body);
}
tz_color.end();
if (pane.isTerminal()) ansi.images(p, s, pane, id, tx, tw, body_y, body_h);