mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-27 04:32:56 +00:00
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.
This commit is contained in:
parent
01b88539ba
commit
51f532697e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user