mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-09 23:30:56 +00:00
hasPreviewFlags should ignore escaped placeholder
This reload command wouldn't run before the fix: : | fzf --bind 'start:reload:echo \{}'
This commit is contained in:
parent
7dc9e14874
commit
b1460d4787
@ -2762,7 +2762,10 @@ func parsePlaceholder(match string) (bool, string, placeholderFlags) {
|
|||||||
|
|
||||||
func hasPreviewFlags(template string) (slot bool, plus bool, forceUpdate bool) {
|
func hasPreviewFlags(template string) (slot bool, plus bool, forceUpdate bool) {
|
||||||
for _, match := range placeholder.FindAllString(template, -1) {
|
for _, match := range placeholder.FindAllString(template, -1) {
|
||||||
_, _, flags := parsePlaceholder(match)
|
escaped, _, flags := parsePlaceholder(match)
|
||||||
|
if escaped {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if flags.plus {
|
if flags.plus {
|
||||||
plus = true
|
plus = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user