From 17ba21cfe46416e03df3fbde34bb617732a0f379 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 23 Apr 2017 13:29:54 +0200 Subject: [PATCH] Fix pasting backslashes Another missing escape. Fixes #3981. --- 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 d5a1a0ffd..df662f559 100644 --- a/share/functions/__fish_shared_key_bindings.fish +++ b/share/functions/__fish_shared_key_bindings.fish @@ -144,7 +144,7 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod # 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 function __fish_commandline_insert_escaped --description 'Insert the first arg escaped if a second arg is given'