Skip to content
Myr

Adjust maximum scroll offset

Before adoption: this commit came in with the history the project adopted, so no landing records it.

It was possible that a few lines at the bottom may not be visible if there are lines above that span multiple lines.

authored by Junegunn Choi · committed by Junegunn Choi · parent 01b8853 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/terminal.go+1 added-1 removed
1186 unmodified lines
1187 }1188 }1189 scrollPreview := func(amount int) {1190 t.previewer.offset = util.Constrain(1191 t.previewer.offset+amount, 0, t.previewer.lines-t.pwindow.Height)1191 t.previewer.offset+amount, 0, t.previewer.lines-1)1192 req(reqPreviewRefresh)1193 }1194 for key, ret := range t.expect {1195 if keyMatch(key, event) {
353 unmodified lines