Skip to content

Commit

Permalink
fixed: shallslash issue in NeoVim
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed May 22, 2024
1 parent 11f1979 commit 182c636
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions plugin/asyncrun.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" Maintainer: skywind3000 (at) gmail.com, 2016-2024
" Homepage: https://github.com/skywind3000/asyncrun.vim
"
" Last Modified: 2024/05/22 00:55
" Last Modified: 2024/05/23 01:31
"
" Run shell command in background and output to quickfix:
" :AsyncRun[!] [options] {cmd} ...
Expand Down Expand Up @@ -843,7 +843,14 @@ function! s:AsyncRun_Job_Start(cmd)
let l:callbacks.stdin = 'null'
endif
endif
let l:slash = &shellslash
if l:slash
set noshellslash
endif
let s:async_job = jobstart(l:args, l:callbacks)
if l:slash
set shellslash
endif
let l:success = (s:async_job > 0)? 1 : 0
if l:success != 0
if s:async_info.range > 0
Expand Down Expand Up @@ -2308,7 +2315,7 @@ endfunc
" asyncrun - version
"----------------------------------------------------------------------
function! asyncrun#version()
return '2.12.8'
return '2.12.9'
endfunc


Expand Down

0 comments on commit 182c636

Please sign in to comment.