uiterm: add prevention of doing possibly unneeded screen flushes

This commit is contained in:
Tim Cooper
2014-12-06 22:30:16 -04:00
parent 54584f8e30
commit 634e28f2d3
5 changed files with 26 additions and 2 deletions

View File

@@ -96,6 +96,9 @@ func (t *Tree) rebuild_rec(parent TreeItem, level int) []renderedTreeItem {
}
func (t *Tree) uiDraw() {
t.ui.beginDraw()
defer t.ui.endDraw()
if t.lines == nil {
t.Rebuild()
}