diff --git a/runebuf.go b/runebuf.go index 432ab59..5b63955 100644 --- a/runebuf.go +++ b/runebuf.go @@ -472,9 +472,12 @@ func (r *RuneBuffer) SetOffset(offset string) { } func (r *RuneBuffer) Print() { + if !r.interactive { + return + } r.Lock() + defer r.Unlock() r.print() - r.Unlock() } func (r *RuneBuffer) print() {