diff options
Diffstat (limited to 'core/panes.zig')
| -rw-r--r-- | core/panes.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/panes.zig b/core/panes.zig index 658de219..5277ebba 100644 --- a/core/panes.zig +++ b/core/panes.zig @@ -318,6 +318,8 @@ pub const Pane = struct { /// step's `sync` (normal.halfPageMove's scroll), and a core loaded from a /// dump has had none (Replica.initDump). view: SessionView = .{}, + /// The painters a file's body wears in this view (File.Layers). + layers: File.Layers = .{}, sel: [3]Sel = @splat(.{}), pointer_selections: [3]?PointerSelection = @splat(null), next_pointer_selection: u64 = 0, @@ -556,7 +558,7 @@ pub const Pane = struct { 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) { // A +Preview is a file's text: coloured as the file. - if (f.output.?.from == .preview) return .source; + if (f.output.?.from == .preview or f.output.?.from == .revision) return .source; const tr = Output.fileTraits(f.output); if (tr.locations) return .locations; if (!tr.saves) return .none; |
