mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-03-19 17:22:22 +00:00
Always allow preview/execute commands with no placeholder expressions
Fix #2017
This commit is contained in:
parent
f8ae1786dd
commit
6f9663da62
@ -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}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user