Skip to content

Commit

Permalink
Merge pull request #3691 from happy-dude/fix-3690-noshellslash
Browse files Browse the repository at this point in the history
fix /issues/3690: set `noshellslash` only on win32
  • Loading branch information
bhcleek authored Nov 12, 2024
2 parents ac1fb96 + 9ebbe1e commit ec7a59e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions autoload/go/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ function! go#util#Shelljoin(arglist, ...) abort
endif

let ssl_save = &shellslash
set noshellslash
if has("win32")
set noshellslash
endif
if a:0
return join(map(copy(a:arglist), 'shellescape(v:val, ' . a:1 . ')'), ' ')
endif
Expand All @@ -332,7 +334,9 @@ endfunction
function! go#util#Shelllist(arglist, ...) abort
try
let ssl_save = &shellslash
set noshellslash
if has("win32")
set noshellslash
endif
if a:0
return map(copy(a:arglist), 'go#util#Shelljoin(v:val, ' . a:1 . ')')
endif
Expand Down Expand Up @@ -779,7 +783,7 @@ function! go#util#TestNamesInFile() abort
call cursor(l:line-1, 1)
let l:line = go#util#testLine()
endwhile

call setpos('.', l:startpos)

let l:tests = []
Expand Down

0 comments on commit ec7a59e

Please sign in to comment.