From 3d6c4adda95cdc70a3831584be763e76c9b6df15 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 26 Mar 2017 09:33:11 +0200 Subject: [PATCH] Fix unescaped ' literals in bracketed-paste This was a case of a missing \\. Fixes #3913. --- share/functions/__fish_shared_key_bindings.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_shared_key_bindings.fish b/share/functions/__fish_shared_key_bindings.fish index 012697c53..d5a1a0ffd 100644 --- a/share/functions/__fish_shared_key_bindings.fish +++ b/share/functions/__fish_shared_key_bindings.fish @@ -143,7 +143,7 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod # Without this, a \r will overwrite the other text, rendering it invisible - which makes the exercise kinda pointless. # TODO: Test this in windows (\r\n line endings) bind -M paste \r "commandline -i \n" - bind -M paste "'" "__fish_commandline_insert_escaped ' \$__fish_paste_quoted" + bind -M paste "'" "__fish_commandline_insert_escaped \' \$__fish_paste_quoted" bind -M paste \\ "__fish_commandline_insert_escaped \\ \$__fish_paste_quoted" end