Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions autoload/lawrencium.vim
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,19 @@ function! s:HgRepo.GetCommand(command, ...) abort
if a:0 == 1 && type(a:1) == type([])
let l:arg_list = a:1
endif
let l:prev_shellslash = &shellslash
setlocal noshellslash
if exists('+shellslash') && &shellslash
let l:prev_shellslash = &shellslash
set noshellslash
endif
let l:hg_command = g:lawrencium_hg_executable . ' --repository ' . shellescape(lawrencium#stripslash(self.root_dir))
let l:hg_command = l:hg_command . ' ' . a:command
for l:arg in l:arg_list
let l:hg_command = l:hg_command . ' ' . shellescape(l:arg)
endfor
if l:prev_shellslash
setlocal shellslash
if exists('+shellslash') && &shellslash
if l:prev_shellslash
setlocal shellslash
endif
endif
return l:hg_command
endfunction
Expand Down