Disallow preview scroll when the content just fits the window

pull/1341/head
Junegunn Choi 5 years ago
parent 430e8193e0
commit 0e3e6ac442
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -1055,7 +1055,7 @@ func (t *Terminal) printPreview() {
}
return fillRet == tui.FillContinue
})
t.previewer.more = t.previewer.more || t.pwindow.Y() == height-1 && t.pwindow.X() > 0
t.previewer.more = t.previewer.more || t.pwindow.Y() == height-1 && t.pwindow.X() == t.pwindow.Width()
if fillRet == tui.FillNextLine {
continue
} else if fillRet == tui.FillSuspend {

Loading…
Cancel
Save