Skip to content
Myr

Always allow preview/execute commands with no placeholder expressions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #2017

authored by Junegunn Choi · committed by Junegunn Choi · parent f8ae178 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/terminal.go+2 added-2 removed
1551 unmodified lines
1552}15531554func (t *Terminal) buildPlusList(template string, forcePlus bool) (bool, []*Item) {1555 current := t.currentItem()1556 _, plus, query := hasPreviewFlags(template)1557 if !(query && len(t.input) > 0 || (forcePlus || plus) && len(t.selected) > 0) {1556 slot, plus, query := hasPreviewFlags(template)1557 if !(!slot || query && len(t.input) > 0 || (forcePlus || plus) && len(t.selected) > 0) {1558 return current != nil, []*Item{current, current}1559 }15601561 // We would still want to update preview window even if there is no match if
798 unmodified lines