Fixed highlighter resetting of syntax on doc filename change
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user