Use the platform quote placeholder for {fzf:prompt}

Every other entry in this table goes through {{.O}}; this one had the
POSIX single quotes written in, so it could only pass off Windows.
This commit is contained in:
Cyrus 2026-08-12 20:09:32 +08:00 committed by Junegunn Choi
parent 63f6cfec5b
commit bd4efa277b
No known key found for this signature in database
GPG key ID: D9770615D226D94C

View file

@ -223,7 +223,7 @@ func TestReplacePlaceholder(t *testing.T) {
// while the double q is invalid, it is useful here for testing purposes
templateToOutput[`{q}`] = "{{.O}}" + query + "{{.O}}"
templateToOutput[`{fzf:query}`] = "{{.O}}" + query + "{{.O}}"
templateToOutput[`{fzf:action} {fzf:prompt}`] = "backward-delete-char-eof 'prompt'"
templateToOutput[`{fzf:action} {fzf:prompt}`] = `backward-delete-char-eof {{.O}}prompt{{.O}}`
// IV. escaping placeholder
templateToOutput[`\{}`] = `{}`