Customized fork of github.com/rxi/lite

Fixed bug in Highlighter.invalidate() when setting first_invalid_line

The value should not be updated if the current first_invalid_line is less than
the new invalid line index

rxi 4b167e86 f00d5d55

Changed files
+1 -1
data
core
+1 -1
data/core/doc/highlighter.lua
··· 46 46 47 47 48 48 function Highlighter:invalidate(idx) 49 - self.first_invalid_line = idx 49 + self.first_invalid_line = math.min(self.first_invalid_line, idx) 50 50 self.max_wanted_line = math.min(self.max_wanted_line, #self.doc.lines) 51 51 end 52 52