From bacc8609ee22fb9bbe34dc812ecb6075f4e58007 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 3 Nov 2024 15:06:11 +0900 Subject: [PATCH] Fix characters from previous preview not being cleared Fix #4075 --- src/tui/light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/light.go b/src/tui/light.go index 80488bf..054c23a 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -1097,7 +1097,7 @@ func (w *LightWindow) fill(str string, resetCode string) FillReturn { } } } - if w.posx+1 >= w.Width() { + if w.posx >= w.Width() { if w.posy+1 >= w.height { return FillSuspend }