summaryrefslogtreecommitdiff
path: root/src/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/File.zig')
-rw-r--r--src/File.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/File.zig b/src/File.zig
index d1636852..94e211a1 100644
--- a/src/File.zig
+++ b/src/File.zig
@@ -1824,10 +1824,10 @@ pub fn recolorSyntax(p: *Pardes, s: *Surface, pane: *Pane, f: *State, r: pardes.
const tints: ?DiffTints = if ((algo == .diff or algo == .locations) and highlights.len > 0) DiffTints.of(p) else null;
const row_tint = algo == .diff;
var filtered_storage: terminal.FilteredColors = undefined;
- const filtered: ?*terminal.FilteredColors = if (comptime terminal.enabled) (if (pane.tty_filter and spans.len > 0) blk: {
+ const filtered: ?*terminal.FilteredColors = if (pane.tty_filter and spans.len > 0) blk: {
filtered_storage = .init(p, null);
break :blk &filtered_storage;
- } else null) else null;
+ } else null;
// indexed start, same as bodyText — an empty tail simply paints nothing
var flines = std.mem.splitScalar(u8, f.content[lineStart(p.gpa, f, f.scroll)..], '\n');
const total = nlines(p.gpa, f);