From b1460d4787adb84b54262ff69caf6ad3dfac1e8a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 6 Jun 2024 15:15:15 +0900 Subject: [PATCH] hasPreviewFlags should ignore escaped placeholder This reload command wouldn't run before the fix: : | fzf --bind 'start:reload:echo \{}' --- src/terminal.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/terminal.go b/src/terminal.go index 7846e66..386e085 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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 }