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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user