Fix renderer bug where UI could be duplicated in inline-TUIs

This commit is contained in:
Christian Rocha
2020-06-05 14:00:39 -04:00
parent 2896e0e8e6
commit 3647042096

View File

@@ -95,5 +95,6 @@ func (r *renderer) flush() {
func (w *renderer) write(s string) {
w.mtx.Lock()
defer w.mtx.Unlock()
w.buf.Reset()
w.buf.WriteString(s)
}