From 3647042096baf33782c3f18c873427095ccb434a Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 5 Jun 2020 14:00:39 -0400 Subject: [PATCH] Fix renderer bug where UI could be duplicated in inline-TUIs --- renderer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/renderer.go b/renderer.go index 106a731..b72e6b2 100644 --- a/renderer.go +++ b/renderer.go @@ -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) }