From 6f9663da62a84fcce8992c63dad8016f3107364d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 29 Sep 2020 11:31:28 +0900 Subject: [PATCH] Always allow preview/execute commands with no placeholder expressions Fix #2017 --- src/terminal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal.go b/src/terminal.go index 6b8dfcf..428ee76 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -1553,8 +1553,8 @@ func (t *Terminal) currentItem() *Item { func (t *Terminal) buildPlusList(template string, forcePlus bool) (bool, []*Item) { current := t.currentItem() - _, plus, query := hasPreviewFlags(template) - if !(query && len(t.input) > 0 || (forcePlus || plus) && len(t.selected) > 0) { + slot, plus, query := hasPreviewFlags(template) + if !(!slot || query && len(t.input) > 0 || (forcePlus || plus) && len(t.selected) > 0) { return current != nil, []*Item{current, current} }