Skip to content
Myr

Fix bug where top section of the previous preview content appearing

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

when the preview window is re-enabled and the current preview process is taking more than 500ms and previewDelayed is triggered fzf --preview 'sleep 1; date; seq 1000' --bind space:toggle-preview

authored by Junegunn Choi · committed by Junegunn Choi · parent 690d5e6 · Browse files · 1 file+4 added−0 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:src/terminal.go+4 added
3098 unmodified lines
3099 t.cancelPreview()3100 t.previewBox.Set(reqPreviewEnqueue,3101 previewRequest{t.previewOpts.command, t.pwindow, t.evaluateScrollOffset(), list})3102 }3103 } else {3104 // Discard the preview content so that it won't accidentally appear3105 // when preview window is re-enabled and previewDelay is triggered3106 t.previewer.lines = nil3107 }3108 }3109 case actTogglePreviewWrap:3110 if t.hasPreviewWindow() {
789 unmodified lines