Allow re-enabling preview follow on change-preview-window

This commit is contained in:
Junegunn Choi 2023-01-09 11:08:06 +09:00
parent 4d22b5aaef
commit e0f0984da7
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -3320,6 +3320,9 @@ func (t *Terminal) Loop() {
if t.hasPreviewWindow() && currentPreviewOpts.scroll != t.previewOpts.scroll {
scrollPreviewTo(t.evaluateScrollOffset())
}
// Resume following
t.previewer.following = t.previewOpts.follow
case actNextSelected, actPrevSelected:
if len(t.selected) > 0 {
total := t.merger.Length()