summaryrefslogtreecommitdiff
path: root/src/fs.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-15 13:13:36 -0300
committerGabriel Schneider <[email protected]>2026-09-15 17:24:42 -0300
commit8ec8924cd577f71953f8e420af1cd60da92f3300 (patch)
treefb28f12321fd263a3dda07e9c82c24477df1f48f /src/fs.zig
parentffc700d14d61fd5e6ca874a186932300c447c836 (diff)
downloadpardes-8ec8924cd577f71953f8e420af1cd60da92f3300.tar.gz
pardes-8ec8924cd577f71953f8e420af1cd60da92f3300.zip
Add optional tree-sitter declaration context
Diffstat (limited to 'src/fs.zig')
-rw-r--r--src/fs.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fs.zig b/src/fs.zig
index 5ec09d3e..4fe32347 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -2957,6 +2957,9 @@ pub fn nameBuffer(p: *Pardes, id: usize, full: []const u8, preserve_tag: bool) !
f.highlights = &.{};
f.highlight_start = 0;
f.syntax_dirty = true;
+ f.context_revision = null;
+ pane.context_rows = 0;
+ pane.wrap_n = 0;
p.invalidateLookHover(id);
p.emit(.{ .watch = .{ .pane = @intCast(id), .on = false } });
}