mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-24 09:47:19 +09:00
Optimize the memory usage for syntax highlighting
This commit is contained in:
@@ -65,9 +65,12 @@ func (c *CellView) Draw(buf *Buffer, top, height, left, width int) {
|
||||
buf.lines[start-1].rehighlight = false
|
||||
}
|
||||
|
||||
buf.highlighter.ReHighlight(buf, start)
|
||||
buf.highlighter.ReHighlightStates(buf, start)
|
||||
}
|
||||
|
||||
buf.highlighter.HighlightMatches(buf, top, top+height)
|
||||
messenger.Message(top, top+height)
|
||||
|
||||
c.lines = make([][]*Char, 0)
|
||||
|
||||
viewLine := 0
|
||||
|
||||
Reference in New Issue
Block a user