summaryrefslogtreecommitdiff
path: root/core/File.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/File.zig')
-rw-r--r--core/File.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/File.zig b/core/File.zig
index 75d8049b..325abee9 100644
--- a/core/File.zig
+++ b/core/File.zig
@@ -1579,7 +1579,7 @@ pub fn refreshHighlights(p: *Pardes) void {
// itself on the frame, a third of the work; the stretch around it
// comes painted ahead (paintAhead) where there are workers.
const far = f.highlights.len == 0 or need_end <= f.highlight_start or need_start >= f.highlight_start + f.highlights.len;
- const slack: usize = if (far and p.host.vtable.search != null) 0 else if (f.highlights.len == 0) 0 else pane.rows;
+ const slack: usize = if (far and p.tape.has(p, .search)) 0 else if (f.highlights.len == 0) 0 else pane.rows;
const whole = pane.colorAlgo() == .locations or f.tree_context;
// Painted ahead on a worker (Stream.paintAhead): taken, no parse.
if (!whole and pane.colorAlgo() == .source) if (Stream.takeAhead(p, pane.serial, f.revision, need_start, need_end)) |got| {