From 5ac69a8bbcb9af02bc80209b8cdde507d188681f Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Wed, 29 Jan 2014 16:10:12 +0100 Subject: [PATCH] Fix typo in utility#escape(). --- autoload/utility.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/utility.vim b/autoload/utility.vim index 0b51aa6..b43d921 100644 --- a/autoload/utility.vim +++ b/autoload/utility.vim @@ -61,14 +61,14 @@ function! utility#file_relative_to_repo_root() return substitute(s:file, repo_root_for_file, '', '') endfunction -" https://github.com/tpope/vim-dispatch/blob/9cdd05a87f8a47120335be03dfcd8358544221cd/autoload/dispatch/windows.vim#L8-L17 +" https://github.com/tpope/vim-dispatch/blob/bc415acd37187cbd6b417d92af40ba2c4b3b8775/autoload/dispatch/windows.vim#L8-L17 function! utility#escape(str) if &shellxquote ==# '"' return '"' . substitute(a:str, '"', '""', 'g') . '"' else let esc = exists('+shellxescape') ? &shellxescape : '"&|<>()@^' return &shellquote . - \ substitute(a:str, '['.esc.']', '&', 'g') . + \ substitute(a:str, '['.esc.']', '^&', 'g') . \ get({'(': ')', '"(': ')"'}, &shellquote, &shellquote) endif endfunction