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

toggle-preview should not show empty preview window

This commit is contained in:
Junegunn Choi
2023-01-30 22:05:34 +09:00
parent fccab60a5c
commit 3ee00f8bc2
2 changed files with 39 additions and 1 deletions

View File

@@ -2867,7 +2867,7 @@ func (t *Terminal) Loop() {
t.mutex.Unlock()
return false
case actTogglePreview:
if t.hasPreviewer() {
if t.hasPreviewWindow() || len(t.previewOpts.command) > 0 {
t.activePreviewOpts.Toggle()
updatePreviewWindow(false)
if t.isPreviewEnabled() {