diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2020-09-29 11:31:28 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2020-09-29 11:32:56 +0900 |
commit | 6f9663da62a84fcce8992c63dad8016f3107364d (patch) | |
tree | 40fd23a266f690a1f7741ffdc07ae61a9c472aa5 | |
parent | f8ae1786dd69e10c0e74d7c9499658a64bb816ca (diff) |
Always allow preview/execute commands with no placeholder expressions
Fix #2017
-rw-r--r-- | src/terminal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal.go b/src/terminal.go index 6b8dfcfa..428ee763 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} } |