Fix characters from previous preview not being cleared

Fix #4075
This commit is contained in:
Junegunn Choi committed 2024-11-03 15:07:17 +09:00
1 parent 99163f5afa
commit bacc8609ee
1 file changed
+1 -1
+1 -1
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 {
return FillSuspend
}