summaryrefslogtreecommitdiff
path: root/core/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/panes.zig')
-rw-r--r--core/panes.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/panes.zig b/core/panes.zig
index e8f35de8..2f488482 100644
--- a/core/panes.zig
+++ b/core/panes.zig
@@ -558,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;