Skip to content
Myr

hasPreviewFlags should ignore escaped placeholder

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

This reload command wouldn't run before the fix: : | fzf --bind 'start:reload:echo \{}'

authored by Junegunn Choi · committed by Junegunn Choi · parent 7dc9e14 · Browse files · 1 file+4 added−1 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:src/terminal.go+4 added-1 removed
2760 unmodified lines
2761}27622763func hasPreviewFlags(template string) (slot bool, plus bool, forceUpdate bool) {2764 for _, match := range placeholder.FindAllString(template, -1) {2765 _, _, flags := parsePlaceholder(match)2765 escaped, _, flags := parsePlaceholder(match)2766 if escaped {2767 continue2768 }2769 if flags.plus {2770 plus = true2771 }2772 if flags.forceUpdate {
1973 unmodified lines