summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/ctl.zig12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index a72e7259..7bd586dc 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -718,17 +718,7 @@ pub fn fillPager(p: *Pardes, serial: u32, held: *std.ArrayList(u8)) error{OutOfM
panes.File.setContent(p, f, page.text);
f.pager_spans = page.spans;
f.saved_revision = f.revision;
- // A diff paged (`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.
- if (f.pager_diff) {
- const keyboard = p.view().active;
- if (panes.Output.openDiff(p, id, f.path, f.content)) |hid| {
- // ponytail: the text is gone with it; Diff on the +Diff says no such file.
- p.removePane(id, hid) catch |err| p.reportError(id, "pager", err);
- } else |_| {}
- if (p.panes[keyboard] != null) p.view().active = keyboard;
- }
+ if (f.pager_diff) @import("../hunks.zig").paged(p, id);
}
/// The editor's step: the text of /pager opens closed unread goes in.