From 56fb2f00b3d3b6eed606d58411b5e6495ec99afc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 8 Jun 2016 00:54:21 +0900 Subject: Use single-quoted strings in execute action Close #590 --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/terminal.go b/src/terminal.go index c4402926..b1455e8e 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -743,7 +743,7 @@ func keyMatch(key int, event C.Event) bool { } func quoteEntry(entry string) string { - return fmt.Sprintf("%q", entry) + return "'" + strings.Replace(entry, "'", "'\\''", -1) + "'" } func executeCommand(template string, replacement string) { -- cgit v1.2.3