aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2023-01-30 10:55:19 -0700
committerJosh Rahm <rahm@google.com>2023-01-30 10:55:19 -0700
commit19015cd04b697abdc3f522f4789e311812eeb2ac (patch)
treeb503ac022c051aaa8c44287e0dd49ea4f33bd731
parentdc97c212fe68346e87de9a6726b9de7d177ac742 (diff)
downloadzshrcd-19015cd04b697abdc3f522f4789e311812eeb2ac.tar.gz
zshrcd-19015cd04b697abdc3f522f4789e311812eeb2ac.tar.bz2
zshrcd-19015cd04b697abdc3f522f4789e311812eeb2ac.zip
Fix the file-contents-expansion to properly escape backslashes
-rw-r--r--98-bindkeys.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/98-bindkeys.zsh b/98-bindkeys.zsh
index a68502d..1dd2842 100644
--- a/98-bindkeys.zsh
+++ b/98-bindkeys.zsh
@@ -35,7 +35,7 @@ nvim-cmd-mode() {
}
quote-escape() {
- sed "s/'/'\"'\"'/g" <<< "$1"
+ sed "s/'/'\"'\"'/g;s/\\\\/\\\\\\\\/g" <<< "$1"
}
expand-last-file() {