summaryrefslogtreecommitdiff
path: root/core/lib_editor.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib_editor.zig')
-rw-r--r--core/lib_editor.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib_editor.zig b/core/lib_editor.zig
index 3fe631af..3e4a1f15 100644
--- a/core/lib_editor.zig
+++ b/core/lib_editor.zig
@@ -585,7 +585,7 @@ pub const Syntax = struct {
if (!syntax_impl.addLanguage(lang)) return null;
s.tree = @ptrCast(@alignCast(syntax_impl.parseTree(path, text, null) orelse return null));
}
- return .{ .root = s.tree.?, .path = path, .history = &s.history, .gpa = std.heap.page_allocator };
+ return .{ .root = s.tree.?, .path = path, .history = &s.history, .gpa = std.heap.page_allocator, .text = text, .file = {} };
}
/// One `Syn` a byte of `ed`'s text from `from` to `to`, in `a`.