Fixed highlighter resetting of syntax on doc filename change

This commit is contained in:
rxi committed 2020-05-09 16:28:18 +01:00
1 parent 70f62f3c8a
commit 3d49b6d200
2 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ function Doc:reset_syntax()
local syn = syntax.get(self.filename or "")
if self.syntax ~= syn then
self.syntax = syn
self.highlighter:invalidate(1)
self.highlighter:reset()
end
end