From 182c636909cfd41e1d72e1278a7db6a4e5271b81 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Thu, 23 May 2024 01:35:02 +0800 Subject: [PATCH] fixed: shallslash issue in NeoVim --- plugin/asyncrun.vim | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugin/asyncrun.vim b/plugin/asyncrun.vim index 0a562b4..a8388da 100644 --- a/plugin/asyncrun.vim +++ b/plugin/asyncrun.vim @@ -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} ... @@ -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 @@ -2308,7 +2315,7 @@ endfunc " asyncrun - version "---------------------------------------------------------------------- function! asyncrun#version() - return '2.12.8' + return '2.12.9' endfunc