From 3e2ffcccdf11258ec0339d654166c291ef9edc0e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 04:15:28 -0300 Subject: 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) --- src/look.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/look.zig') diff --git a/src/look.zig b/src/look.zig index 783ff54c..136a7a9c 100644 --- a/src/look.zig +++ b/src/look.zig @@ -1285,7 +1285,7 @@ pub fn isHistoryList(pane: *const Pane) bool { // ---- a look on a diff line ---- /// The lines of a pane showing a diff, a .diff or .patch file or a -/// finished command pane whose output is one (File.DiffOutput); null for +/// finished command pane whose output is one (ansi.DiffOutput); null for /// any other pane. Good until the next step. pub fn diffLines(p: *Pardes, pane: *Pane) ?[]const []const u8 { if (pane.file) |*f| { -- cgit v1.3