Skip to content

Commit ec7a59e

Browse files
authored
Merge pull request #3691 from happy-dude/fix-3690-noshellslash
fix /issues/3690: set `noshellslash` only on win32
2 parents ac1fb96 + 9ebbe1e commit ec7a59e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

autoload/go/util.vim

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ function! go#util#Shelljoin(arglist, ...) abort
314314
endif
315315

316316
let ssl_save = &shellslash
317-
set noshellslash
317+
if has("win32")
318+
set noshellslash
319+
endif
318320
if a:0
319321
return join(map(copy(a:arglist), 'shellescape(v:val, ' . a:1 . ')'), ' ')
320322
endif
@@ -332,7 +334,9 @@ endfunction
332334
function! go#util#Shelllist(arglist, ...) abort
333335
try
334336
let ssl_save = &shellslash
335-
set noshellslash
337+
if has("win32")
338+
set noshellslash
339+
endif
336340
if a:0
337341
return map(copy(a:arglist), 'go#util#Shelljoin(v:val, ' . a:1 . ')')
338342
endif
@@ -779,7 +783,7 @@ function! go#util#TestNamesInFile() abort
779783
call cursor(l:line-1, 1)
780784
let l:line = go#util#testLine()
781785
endwhile
782-
786+
783787
call setpos('.', l:startpos)
784788

785789
let l:tests = []

0 commit comments

Comments
 (0)