Add more performance and memory optimizations

This commit is contained in:
Zachary Yedidia
2017-03-24 14:11:21 -04:00
parent 87f54be13a
commit d413562145
6 changed files with 84 additions and 73 deletions

View File

@@ -186,4 +186,8 @@ func (c *CellView) Draw(buf *Buffer, top, height, left, width int) {
viewLine++
lineN++
}
for i := top; i < top+height; i++ {
buf.SetMatch(i, nil)
}
}