mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-05-28 21:30:49 +00:00
Fix bug where top section of the previous preview content appearing
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
This commit is contained in:
parent
690d5e6dbd
commit
f5e4ee90e4
|
@ -3100,6 +3100,10 @@ func (t *Terminal) Loop() {
|
||||||
t.previewBox.Set(reqPreviewEnqueue,
|
t.previewBox.Set(reqPreviewEnqueue,
|
||||||
previewRequest{t.previewOpts.command, t.pwindow, t.evaluateScrollOffset(), list})
|
previewRequest{t.previewOpts.command, t.pwindow, t.evaluateScrollOffset(), list})
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Discard the preview content so that it won't accidentally appear
|
||||||
|
// when preview window is re-enabled and previewDelay is triggered
|
||||||
|
t.previewer.lines = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case actTogglePreviewWrap:
|
case actTogglePreviewWrap:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user