fix: add missing syntax.reset() call on full syntax refresh
This commit is contained in:
parent
66dfcd4a91
commit
3340ff5ef9
1 changed files with 1 additions and 0 deletions
|
@ -3083,6 +3083,7 @@ pub const Editor = struct {
|
||||||
if (!self.syntax_incremental_reparse)
|
if (!self.syntax_incremental_reparse)
|
||||||
self.syntax_refresh_full = true;
|
self.syntax_refresh_full = true;
|
||||||
if (self.syntax_refresh_full) {
|
if (self.syntax_refresh_full) {
|
||||||
|
syn.reset();
|
||||||
const start_time = std.time.milliTimestamp();
|
const start_time = std.time.milliTimestamp();
|
||||||
var content = std.ArrayList(u8).init(self.allocator);
|
var content = std.ArrayList(u8).init(self.allocator);
|
||||||
defer content.deinit();
|
defer content.deinit();
|
||||||
|
|
Loading…
Add table
Reference in a new issue