summaryrefslogtreecommitdiff
path: root/src/hunks.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/hunks.zig')
-rw-r--r--src/hunks.zig16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/hunks.zig b/src/hunks.zig
index f316fe48..2fa86ccd 100644
--- a/src/hunks.zig
+++ b/src/hunks.zig
@@ -601,10 +601,10 @@ fn trimmedWidth(section: []const u8) usize {
// ---- the +Diff in the editor ----
//
-// Its word (Diff), the open and the text it goes back to; and the hook
-// ninep/ctl.zig's filled +Pager calls, which the pager's plumbing message
-// replaces. A bare look at a .diff and at a commit hash are plumbing
-// rules that start Diff (src/plumbing).
+// Its word (Diff), the open and the text it goes back to, and the
+// restack of a paged diff. A bare look at a .diff, a commit hash and a
+// paged diff are plumbing rules (src/plumbing) that start Diff or ask the
+// edit port to show the diff (Plumb.show).
/// The `Diff` word (builtins.zig registers it). Bare, on a +Diff, the diff
/// it stacks as text; on a diff, its hunks stacked in a +Diff. With a file
@@ -674,10 +674,10 @@ fn shows(pane: *const Pane) bool {
return pane.colorAlgo() == .diff or (f.output != null and std.meta.eql(f.output.?.from, Output.Origin{ .cmd = .Diff }));
}
-/// The hook of a +Pager filled with a diff (ninep/ctl.zig's fillPager:
-/// `git show`, difftui's patches): its hunks stacked in a +Diff in the
-/// +Pager's place, the +Pager closed. The keyboard stays where it was, as
-/// a page's.
+/// A pane holding a diff (a +Pager filled with one: `git show`, difftui's
+/// patches; the edit port's `showdiff`, Plumb.show): its hunks stacked in
+/// a +Diff in its place, the pane closed. The keyboard stays where it was,
+/// as a page's.
pub fn paged(p: *Pardes, id: usize) void {
const f = &p.panes[id].?.file.?;
const keyboard = p.view().active;