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

Adjust maximum scroll offset

It was possible that a few lines at the bottom may not be visible if
there are lines above that span multiple lines.
parent 01b88539
No related branches found
No related tags found
No related merge requests found
......@@ -1188,7 +1188,7 @@ func (t *Terminal) Loop() {
}
scrollPreview := func(amount int) {
t.previewer.offset = util.Constrain(
t.previewer.offset+amount, 0, t.previewer.lines-t.pwindow.Height)
t.previewer.offset+amount, 0, t.previewer.lines-1)
req(reqPreviewRefresh)
}
for key, ret := range t.expect {
......
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