summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
1 files changed, 1 insertions, 1 deletions
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) {