mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fixed escaping
This commit is contained in:
@@ -89,7 +89,7 @@ function! s:escape(str)
|
|||||||
else
|
else
|
||||||
let esc = exists('+shellxescape') ? &shellxescape : '"&|<>()@^'
|
let esc = exists('+shellxescape') ? &shellxescape : '"&|<>()@^'
|
||||||
return &shellquote .
|
return &shellquote .
|
||||||
\ substitute(a:str, '['.esc.']', '^&', 'g') .
|
\ substitute(a:str, '['.esc.']', '&', 'g') .
|
||||||
\ get({'(': ')', '"(': ')"'}, &shellquote, &shellquote)
|
\ get({'(': ')', '"(': ')"'}, &shellquote, &shellquote)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user