Fix regression in preview window rendering

pull/2395/head
Junegunn Choi 3 years ago
parent 4c4c6e626e
commit b24a2e2fdc
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -920,7 +920,12 @@ func (w *LightWindow) fill(str string, onMove func()) FillReturn {
}
}
}
if w.posx >= w.Width()-1 {
if w.posx+1 >= w.Width() {
if w.posy+1 >= w.height {
return FillSuspend
}
w.Move(w.posy+1, 0)
onMove()
return FillNextLine
}
return FillContinue

Loading…
Cancel
Save