Skip to content
Snippets Groups Projects
Unverified Commit b24a2e2f authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix regression in preview window rendering

parent 4c4c6e62
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment