m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-15 14:53:47 -05:00

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

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()