From fa6c08b841d6996105383863c33d9552d44f0828 Mon Sep 17 00:00:00 2001 From: "Wilson Y. Wong" Date: Tue, 13 Aug 2013 21:32:00 -0700 Subject: [PATCH] Fixed escaping --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 1ad3519..8260111 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -89,7 +89,7 @@ function! s:escape(str) else let esc = exists('+shellxescape') ? &shellxescape : '"&|<>()@^' return &shellquote . - \ substitute(a:str, '['.esc.']', '^&', 'g') . + \ substitute(a:str, '['.esc.']', '&', 'g') . \ get({'(': ')', '"(': ')"'}, &shellquote, &shellquote) endif endfunction