Fix characters from previous preview not being cleared

Fix #4075
This commit is contained in:
Junegunn Choi 2024-11-03 15:06:11 +09:00
parent 99163f5afa
commit bacc8609ee
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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 { if w.posy+1 >= w.height {
return FillSuspend return FillSuspend
} }