fix(editor): don't leak PosToWidthCache on editor render
This commit is contained in:
parent
3dc56ea6db
commit
4812dd9793
1 changed files with 1 additions and 0 deletions
|
@ -1028,6 +1028,7 @@ pub const Editor = struct {
|
|||
.root = root,
|
||||
.pos_cache = try PosToWidthCache.init(self.a),
|
||||
};
|
||||
defer ctx.pos_cache.deinit();
|
||||
const range: syntax.Range = .{
|
||||
.start_point = .{ .row = @intCast(self.view.row), .column = 0 },
|
||||
.end_point = .{ .row = @intCast(self.view.row + self.view.rows), .column = 0 },
|
||||
|
|
Loading…
Add table
Reference in a new issue