mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-09-19 16:59:04 +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) {
|
||||
for _, match := range placeholder.FindAllString(template, -1) {
|
||||
_, _, flags := parsePlaceholder(match)
|
||||
escaped, _, flags := parsePlaceholder(match)
|
||||
if escaped {
|
||||
continue
|
||||
}
|
||||
if flags.plus {
|
||||
plus = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user