diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-01 01:14:37 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 01:35:12 -0300 |
| commit | e6ff64843b4a8986e9740c576f346690217cf5a7 (patch) | |
| tree | dc710049d45abfabe79cf4ae22331c6879ea661d /src/panes.zig | |
| parent | 006fdc1d758fc2f9b956051e75f31a0122bd7883 (diff) | |
| download | pardes-e6ff64843b4a8986e9740c576f346690217cf5a7.tar.gz pardes-e6ff64843b4a8986e9740c576f346690217cf5a7.zip | |
A +Pager pane whose text is a diff is drawn and looked at as a diff, as a diff command pane is: git diff, show and log -p page into review
With git paging into +Pager, a diff arrived as plain text: no colour
for its sides and a right click on a hunk line searched the word. A
+Pager pane now notes, as its text is set, whether its first 64 KiB
holds a diff header or a unified hunk, and such a pane takes the diff
highlighting and the diff look every diff pane has.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/panes.zig')
| -rw-r--r-- | src/panes.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panes.zig b/src/panes.zig index a395d6ed..9d1b7571 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -448,7 +448,7 @@ pub const Pane = struct { if (pane.isTerminal()) return .tty; if (pane.file) |f| { if (f.mini != null) return .source; - if (std.mem.endsWith(u8, f.path, ".diff") or std.mem.endsWith(u8, f.path, ".patch")) return .diff; + if (std.mem.endsWith(u8, f.path, ".diff") or std.mem.endsWith(u8, f.path, ".patch") or f.pager_diff) return .diff; if (f.output != null) { const tr = Output.fileTraits(f.output); if (tr.locations) return .locations; |
