Add soft_reset to highlighter

This allows clearing the `lines` table without removing entries.
This commit is contained in:
Guldoman committed 2021-11-20 01:15:13 +01:00
1 parent a7bbd3d6f7
commit f24aa64cd5
2 files changed
+8 -1

No files matched your search

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