mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 12:42:01 -07: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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user