mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 03:19:01 +00:00
Avoid full redraw on 'preview' action when preview window exists
This commit is contained in:
parent
d373cf89c7
commit
1416e696b1
@ -3490,7 +3490,9 @@ func (t *Terminal) Loop() {
|
|||||||
t.prompt, t.promptLen = t.parsePrompt(a.a)
|
t.prompt, t.promptLen = t.parsePrompt(a.a)
|
||||||
req(reqPrompt)
|
req(reqPrompt)
|
||||||
case actPreview:
|
case actPreview:
|
||||||
|
if !t.hasPreviewWindow() {
|
||||||
updatePreviewWindow(true)
|
updatePreviewWindow(true)
|
||||||
|
}
|
||||||
refreshPreview(a.a)
|
refreshPreview(a.a)
|
||||||
case actRefreshPreview:
|
case actRefreshPreview:
|
||||||
refreshPreview(t.previewOpts.command)
|
refreshPreview(t.previewOpts.command)
|
||||||
|
Loading…
Reference in New Issue
Block a user