summaryrefslogtreecommitdiff
path: root/src/syntax.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-24 15:23:45 -0300
committerGabriel Schneider <[email protected]>2026-10-24 21:00:32 -0300
commita9e33e52d789c7433da1da17a8c82093c9114243 (patch)
tree0fb83bc2be369b5a36c86ce8173fb9114503528b /src/syntax.zig
parente28b0992e9cd8dcedea5ed435566277ee6a93d5b (diff)
downloadpardes-a9e33e52d789c7433da1da17a8c82093c9114243.tar.gz
pardes-a9e33e52d789c7433da1da17a8c82093c9114243.zip
anim 7: what the probe found: the paced wait spins (asleep, the CPU's clock fell and an input's frame took 2-5x as long), a glide measures the core's line count first and emits only the rows it shows, a far jump paints only its view, a long line 16 KB round the caret, the caret's sideways scroll measured from the view's edge, a paint never joined on the loop nor asked while the view stands still, rewritten generated panes do not glide, pictures decode off the loop
Diffstat (limited to 'src/syntax.zig')
-rw-r--r--src/syntax.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/syntax.zig b/src/syntax.zig
index 821754fa..985a9888 100644
--- a/src/syntax.zig
+++ b/src/syntax.zig
@@ -344,6 +344,7 @@ pub fn highlightApart(gpa: std.mem.Allocator, path: []const u8, source: []const
.{ .payload = @constCast(halt), .progress_callback = @ptrCast(&Reader.progress) },
) orelse return error.Canceled;
defer tree.destroy();
+ if (halt.load(.monotonic)) return error.Canceled;
const styles = try gpa.alloc(u8, source.len);
@memset(styles, 0);
var own = shared;