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
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 1 additions and 0 deletions

View File

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