Mercurial > vim-lawrencium
changeset 124:d5602a22bab5
Correctly escape the command on Windows when `&shellslash` is enabled.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 16 Feb 2016 22:14:26 -0800 |
parents | 860e6502b239 |
children | bbb19d37c681 |
files | plugin/lawrencium.vim |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugin/lawrencium.vim Tue Feb 16 21:53:42 2016 -0800 +++ b/plugin/lawrencium.vim Tue Feb 16 22:14:26 2016 -0800 @@ -356,6 +356,8 @@ if a:0 == 1 && type(a:1) == type([]) let l:arg_list = a:1 endif + let l:prev_shellslash = &shellslash + setlocal noshellslash let l:hg_command = g:lawrencium_hg_executable . ' --repository ' . shellescape(s:stripslash(self.root_dir)) let l:hg_command = l:hg_command . ' ' . a:command for l:arg in l:arg_list @@ -365,6 +367,9 @@ let l:hg_command = l:hg_command . ' ' . l:arg endif endfor + if l:prev_shellslash + setlocal shellslash + endif return l:hg_command endfunction