Skip to content

Commit c19f370

Browse files
committed
Fix Linux support
1 parent d18dbad commit c19f370

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

autoload/javaunit/util.vim

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,13 @@ function! javaunit#util#ExecCMD(cmd)
4141
endfunction
4242

4343
function! s:EscapeCMD(cmd)
44+
let cmd = a:cmd
4445
if s:WINDOWS()
4546
let cmd = substitute(a:cmd,' ','\\ ','g')
4647
let cmd = substitute(cmd,'\','\\\','g')
4748
let cmd = substitute(cmd,';','\\;','g')
4849
let cmd = substitute(cmd, '\t', '\\t', 'g')
4950
let cmd = substitute(cmd,':','\\:','g')
50-
else
51-
let cmd = substitute(a:cmd,' ','\\ ','g')
52-
let cmd = substitute(cmd,'\','\\\','g')
53-
let cmd = substitute(cmd,';','\\;','g')
54-
let cmd = substitute(cmd, '\t', '\\t', 'g')
55-
let cmd = substitute(cmd,':','\\:','g')
5651
endif
5752
return cmd
5853
endfunction

0 commit comments

Comments
 (0)