mirror of
https://github.com/junegunn/fzf.git
synced 2026-09-30 23:52:29 +08:00
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:
1 parent
63f6cfec5b
commit
bd4efa277b
1 file changed
+1
-1
@@ -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[`\{}`] = `{}`
|
||||
|
||||
Reference in new issue
Block a user