summaryrefslogtreecommitdiff
path: root/src/look.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/look.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/look.zig')
-rw-r--r--src/look.zig2
1 files changed, 1 insertions, 1 deletions
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| {