feat: add Buffer get_from_pos function

This commit is contained in:
CJ van den Berg 2024-07-23 22:21:12 +02:00
parent 2db66a1369
commit fb1d91585f
2 changed files with 11 additions and 0 deletions

View file

@ -2910,6 +2910,7 @@ pub const Editor = struct {
syn.refresh_full(content.items)
else
syn.refresh(content.items);
// syn.refresh_from_buffer(root, self.plane.metrics()); // TODO: partial refresh from buffer when treez PR is merged and flow-syntax is updated
self.syntax_refresh_full = false;
self.syntax_token = token;
} else {