Fixed highlighter resetting of syntax on doc filename change

This commit is contained in:
rxi
2020-05-09 16:28:18 +01:00
parent 70f62f3c8a
commit 3d49b6d200
2 changed files with 8 additions and 4 deletions
+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