mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-15 06:43:47 -05:00
Avoid full redraw on 'preview' action when preview window exists
This commit is contained in:
@@ -3490,7 +3490,9 @@ func (t *Terminal) Loop() {
|
||||
t.prompt, t.promptLen = t.parsePrompt(a.a)
|
||||
req(reqPrompt)
|
||||
case actPreview:
|
||||
updatePreviewWindow(true)
|
||||
if !t.hasPreviewWindow() {
|
||||
updatePreviewWindow(true)
|
||||
}
|
||||
refreshPreview(a.a)
|
||||
case actRefreshPreview:
|
||||
refreshPreview(t.previewOpts.command)
|
||||
|
||||
Reference in New Issue
Block a user