Skip to content

Instantly share code, notes, and snippets.

@mattn
Created January 21, 2017 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/5df218f6d8cdf06a0c0ade718a55258d to your computer and use it in GitHub Desktop.
Save mattn/5df218f6d8cdf06a0c0ade718a55258d to your computer and use it in GitHub Desktop.
diff --git a/autoload/quickrun/runner/job.vim b/autoload/quickrun/runner/job.vim
index 96e0921..9184f68 100644
--- a/autoload/quickrun/runner/job.vim
+++ b/autoload/quickrun/runner/job.vim
@@ -23,7 +23,7 @@ endfunction
function! s:runner.run(commands, input, session) abort
let command = join(a:commands, ' && ')
- let cmd_arg = s:is_win ? ['cmd.exe', '/c', command]
+ let cmd_arg = s:is_win ? "cmd.exe /c ^" . command
\ : ['sh', '-c', command]
let options = {
\ 'mode': 'raw',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment