Skip to content

Commit 182c636

Browse files
author
skywind3000
committed
fixed: shallslash issue in NeoVim
1 parent 11f1979 commit 182c636

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

plugin/asyncrun.vim

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: skywind3000 (at) gmail.com, 2016-2024
44
" Homepage: https://github.com/skywind3000/asyncrun.vim
55
"
6-
" Last Modified: 2024/05/22 00:55
6+
" Last Modified: 2024/05/23 01:31
77
"
88
" Run shell command in background and output to quickfix:
99
" :AsyncRun[!] [options] {cmd} ...
@@ -843,7 +843,14 @@ function! s:AsyncRun_Job_Start(cmd)
843843
let l:callbacks.stdin = 'null'
844844
endif
845845
endif
846+
let l:slash = &shellslash
847+
if l:slash
848+
set noshellslash
849+
endif
846850
let s:async_job = jobstart(l:args, l:callbacks)
851+
if l:slash
852+
set shellslash
853+
endif
847854
let l:success = (s:async_job > 0)? 1 : 0
848855
if l:success != 0
849856
if s:async_info.range > 0
@@ -2308,7 +2315,7 @@ endfunc
23082315
" asyncrun - version
23092316
"----------------------------------------------------------------------
23102317
function! asyncrun#version()
2311-
return '2.12.8'
2318+
return '2.12.9'
23122319
endfunc
23132320

23142321

0 commit comments

Comments
 (0)