From 586d8eebeb17446ce116519bebc1651486343f65 Mon Sep 17 00:00:00 2001 From: Thomas O'Dowd Date: Tue, 28 Feb 2023 11:07:26 +0900 Subject: [PATCH] Fix simple race condition related to offset calculations introduced. --- runebuf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runebuf.go b/runebuf.go index c44a958..c6754cc 100644 --- a/runebuf.go +++ b/runebuf.go @@ -510,7 +510,7 @@ func (r *RuneBuffer) getAndSetOffset(t *Terminal) { // at the beginning of the next line. r.w.Write([]byte(" \b")) } - t.GetOffset(r.setOffset) + t.GetOffset(r.SetOffset) } func (r *RuneBuffer) SetOffset(offset string) {