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

@@ -103,6 +103,9 @@ func (t *Textview) Clear() {
}
func (t *Textview) uiDraw() {
t.ui.beginDraw()
defer t.ui.endDraw()
var reader *strings.Reader
line := len(t.parsedLines) - 1 - t.CurrentLine
if line < 0 {